Skip to content

Instantly share code, notes, and snippets.

@dbouwman dbouwman/markup.html
Created Feb 24, 2013

Embed
What would you like to do?
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
You can’t perform that action at this time.