Skip to content

Instantly share code, notes, and snippets.

@dbouwman
Created February 24, 2013 22:56
Show Gist options
  • Save dbouwman/5026118 to your computer and use it in GitHub Desktop.
Save dbouwman/5026118 to your computer and use it in GitHub Desktop.
Markup and templates for our layer list
<!-- Container for the Layer List -->
<div id="layer-list-region" style="display:none;" class="view"></div>
<!-- Templates -->
<script id="layer-list-template" type="text/template" >
<div class="header">
<h3>Map Layers</h3>
<span id="layer-list-close" class="entypo-cancel-circled"></span>
</div>
<div class="clear"></div>
<div class="span2">
<h4>operational layers</h4>
<div id="layer-list"></div>
</div>
<div class="span2">
<h4>basemaps</h4>
<div id="basemap-list"></div>
</div>
</script>
<script id="layer-item-template" type="text/template" >
<input type="checkbox" <% if(visible) { %> checked <% } %> /> <%= name %>
</script>
<script id="basemap-item-template" type="text/template">
<input type="radio" name="basemaps" <% if(visible) { %> checked <% } %> />
<span> <%= name %></span>
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment