Changeset 9297
- Timestamp:
- Jun 24, 2011, 1:21:52 PM (13 years ago)
- Location:
- src/django_gheat/website
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/django_gheat/website/static/heatmap_extensions.js
r9276 r9297 52 52 $("#signallayer font").text("Signal strength: " + sig.values[0] + " - " + sig.values[1]); 53 53 }, 54 // on slider stop, it tries to delete the old layer and creates a new layer with the slider values54 // on slider stop, it sets a new URL with updated values and redraws the layer 55 55 stop: function(event, sig){ 56 56 signallayer = map.getLayersByName('signallayer'); … … 62 62 63 63 // toggle layer visibility 64 $("#togglelayer").live( "click", function(){64 $("#togglelayer").live('click', function(){ 65 65 status = $(this).attr("checked"); 66 66 layername = $(this).parents('span').attr('id'); … … 69 69 }); 70 70 71 // toggle layer visibility per categorie 72 $("#togglecat").click(function(){ 73 layertype = $(this).closest('div').attr('id'); 74 75 71 // toggle layer visibility per category 72 $("#togglecat").live("click", function(){ 73 if($(this).attr("checked")){ 74 status = true; 75 } 76 else{ 77 status = false; 78 } 79 layertype = $(this).attr('class'); 80 layers = new Array(); 81 layers = $('#' + layertype).children('span'); 82 $.each(layers, function(l, layer){ 83 layer = map.getLayersByName(layer.id); 84 layer[0].setVisibility(status); 85 $(this).children('input').attr('checked', status); 86 }); 76 87 }); 77 88 -
src/django_gheat/website/static/style.css
r9276 r9297 178 178 } 179 179 180 .olControlPermalink a{ 181 color:#000; 182 } 183 184 .olControlPermalink a:hover{ 185 color:#666; 186 } 180 187 181 188 /* Colorpicker */ … … 217 224 z-index:2; 218 225 } 219 -
src/django_gheat/website/templates/home.html
r9276 r9297 60 60 <div id="layer_switcher"> 61 61 <div id="layer_switcher_cat"> 62 <input type=checkbox id=togglecat c hecked />62 <input type=checkbox id=togglecat class=default checked /> 63 63 Default layers 64 64 </div> 65 65 <p><span id="default"></span><p> 66 66 <div id="layer_switcher_cat"> 67 <input type=checkbox id=togglecat c hecked />67 <input type=checkbox id=togglecat class=node checked /> 68 68 Nodes <a style="margin-top:4px;font-size:10px;float:right;" id="node_filter">(Add all nodes)</a> 69 69 </div> 70 70 <p><span id="node"></span><p> 71 71 <div id="layer_switcher_cat"> 72 <input type=checkbox id=togglecat c hecked />72 <input type=checkbox id=togglecat class=user checked /> 73 73 Users <a style="margin-top:4px;font-size:10px;float:right;" id="user_filter">(Add all users)</a> 74 74 </div> 75 75 <p><span id="user"></span><P> 76 76 <div id="layer_switcher_cat"> 77 <input type=checkbox id=togglecat c hecked />77 <input type=checkbox id=togglecat class=custom checked /> 78 78 Custom filters 79 79 </div><p><span id="custom"></span><p>
Note:
See TracChangeset
for help on using the changeset viewer.