Skip to content

Commit

Permalink
feat(layer-selector-ui): set proper initial state on wms query toggle
Browse files Browse the repository at this point in the history
Set initial state of wms query toggles based on its layer settings.
Need to switch to layer state when the state manager is complete.
  • Loading branch information
AleksueiR committed Apr 30, 2015
1 parent 89c107c commit def837d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/js/RAMP/Modules/templates/layer_selector_template.json
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,8 @@
"layer_toggle_query": "{% include('layer_toggle_awesome', {
id: o.id,
displayName: o.config.displayName,
checked: o.config.settings.visible,
/* TODO: change settings to state when the state manager is ready and you can pull layer state using it */
checked: o.config.settings.queryEnabled,
nameKey: o.nameKey,
icon: 'map-marker'
}); %}
Expand All @@ -271,6 +272,7 @@
"layer_toggle_eye": "{% include('layer_toggle_generic', {
id: o.id,
displayName: o.config.displayName,
/* TODO: change settings to state when the state manager is ready and you can pull layer state using it */
checked: o.config.settings.visible,
nameKey: o.nameKey
}); %}
Expand All @@ -279,6 +281,7 @@
"layer_toggle_box": "{% include('layer_toggle_generic', {
id: o.id,
displayName: o.config.displayName,
/* TODO: change settings to state when the state manager is ready and you can pull layer state using it */
checked: o.config.settings.boundingBoxVisible,
nameKey: o.nameKey
}); %}
Expand Down

0 comments on commit def837d

Please sign in to comment.