Skip to content

Instantly share code, notes, and snippets.



Created Feb 24, 2013
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 class="clear"></div>
<div class="span2">
<h4>operational layers</h4>
<div id="layer-list"></div>
<div class="span2">
<div id="basemap-list"></div>
<script id="layer-item-template" type="text/template" >
<input type="checkbox" <% if(visible) { %> checked <% } %> /> <%= name %>
<script id="basemap-item-template" type="text/template">
<input type="radio" name="basemaps" <% if(visible) { %> checked <% } %> />
<span> <%= name %></span>
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.