Skip to content

Commit

Permalink
#303 AzEl computed markers in Photosphere, deleted old docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tariqksoliman committed Jan 11, 2023
1 parent 2b18cf8 commit 4ad2d2e
Show file tree
Hide file tree
Showing 63 changed files with 134 additions and 5,921 deletions.
9 changes: 9 additions & 0 deletions config/css/config.css
Original file line number Diff line number Diff line change
Expand Up @@ -431,9 +431,18 @@ textarea {
display: flex;
justify-content: space-between;
}
.modal .layerHelp {
height: 35px;
padding: 0px 6px;
margin-right: 12px;
cursor: pointer;
color: #039be5;
transition: color 0.1s cubic-bezier(0.39, 0.575, 0.565, 1);
}
.modal .clone {
height: 35px;
cursor: pointer;
margin-left: 12px;
color: #777;
transition: color 0.1s cubic-bezier(0.39, 0.575, 0.565, 1);
}
Expand Down
12 changes: 12 additions & 0 deletions config/js/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -1259,7 +1259,10 @@ function makeLayerBarAndModal(d, level, options) {
"<div class='modal-content' style='padding-bottom: 0; margin-bottom: " + ((d.type === 'header') ? '260px' : '0') + ";'>" +
"<div class='modal-title'>" +
"<h4 id='modal_name'>" + d.name + "</h4>" +
"<div style='display: flex;'>" +
"<div class='layerHelp'><a href='https://nasa-ammos.github.io/MMGIS/configure/layers' target='__blank' rel='noopener'><i class='mdi mdi-help mdi-24px' title='Layer Configuration Docs'></i></a></div>" +
"<div class='clone'><i class='mdi mdi-content-duplicate mdi-24px' title='Clone Layer'></i></div>" +
"</div>" +
"</div>" +
"<p>" +

Expand Down Expand Up @@ -2678,6 +2681,15 @@ function layerPopulateVariable(modalId, layerType) {
theme: "default || solid",
size: "default || large",
},
pairings: {
initialVisibility: false,
layers: ["Array of layer names to pair"],
pairProp:
"path.to.pair.prop.for.this.layer.and.all.paired.layers.to.link.on",
style: {
any_normal_style_field: "to_style_connective_lines",
},
},
};
currentLayerVars.coordinateAttachments =
currentLayerVars.coordinateAttachments || {
Expand Down
14 changes: 14 additions & 0 deletions docs/pages/Configure/Layers/Vector/Vector.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,15 @@ Example:
"initialVisibility": false,
"theme": "default || solid",
"size": "default || large"
},
"pairings": {
"initialVisibility": false,
"layers": ["Array of layer names to pair"],
"pairProp":
"path.to.pair.prop.for.this.layer.and.all.paired.layers.to.link.on",
"style": {
"any_normal_style_field": "to_style_connective_lines",
}
}
},
"coordinateAttachments": {
Expand Down Expand Up @@ -254,6 +263,11 @@ Example:
- `initialVisibility`: Whether the label sublayer is initially on. Users can toggle sublayers on and off in the layer settings in the LayersTool.
- `theme`: Label theme. Either `default` or `solid`. Default is white text with a black border. Solid is white text with a dark-grey background box.
- `size`: Label size. Either `default` or `large`. Default is 14px, large is 16px.
- `pairings`: Links cross-layer features together. Features paired to this layer will attempt to compute the azimuth-elevation relationship between the two to draw in the Viewer's PhotoSphere. Additionally, on the Map, a line will be drawn between the two features.
- `initialVisibility`: Whether the pairing line sublayer is initially on. Users can toggle sublayers on and off in the layer settings in the LayersTool.
- `layers`: An array of names of other layers. Note: Do not use css shorthand color names ("blue", "maroon", ...) in the paired layers styles as they won't parse properly when drawing in the PhotoSphere.
- `pairProp`: The dot notated path to the feature properties that contains the property to pair on. This layer and all paired layers need this property to properly pair up. A feature in this layer is said to be paired with a feature of one of the other specified layers, if and only if the values of this property in both features matches.
- `style`: A style object to change the style of the connective lines on the Map between features. (Ex. { "color": "#00000", "weight": 5})
- `coordinateAttachments`: Attachment layers for each coordinate of every feature.
- `marker`: Place a marker at every coordinate of every feature.
- `initialVisibility`: Whether the coordinate marker sublayer is initially on. Users can toggle sublayers on and off in the layer settings in the LayersTool.
Expand Down
240 changes: 0 additions & 240 deletions documentation/docs.css

This file was deleted.

Loading

0 comments on commit 4ad2d2e

Please sign in to comment.