Index: src/django_gheat/website/static/heatmap_extensions.js
===================================================================
--- src/django_gheat/website/static/heatmap_extensions.js	(revision 9276)
+++ src/django_gheat/website/static/heatmap_extensions.js	(revision 9297)
@@ -52,5 +52,5 @@
       $("#signallayer font").text("Signal strength: " + sig.values[0] + " - " + sig.values[1]);
     },
-    // on slider stop, it tries to delete the old layer and creates a new layer with the slider values
+    // on slider stop, it sets a new URL with updated values and redraws the layer
     stop: function(event, sig){
       signallayer = map.getLayersByName('signallayer');
@@ -62,5 +62,5 @@
 
   // toggle layer visibility
-  $("#togglelayer").live("click", function(){
+  $("#togglelayer").live('click', function(){
     status = $(this).attr("checked");
     layername = $(this).parents('span').attr('id');
@@ -69,9 +69,20 @@
   }); 
 
-  // toggle layer visibility per categorie
-  $("#togglecat").click(function(){
-    layertype = $(this).closest('div').attr('id');
-    
-
+  // toggle layer visibility per category
+  $("#togglecat").live("click", function(){
+    if($(this).attr("checked")){
+      status = true;
+    }
+    else{
+      status = false;
+    }    
+    layertype = $(this).attr('class');
+    layers = new Array();
+    layers = $('#' + layertype).children('span');
+    $.each(layers, function(l, layer){
+      layer = map.getLayersByName(layer.id);
+      layer[0].setVisibility(status);
+      $(this).children('input').attr('checked', status);
+    });
   });
 
Index: src/django_gheat/website/static/style.css
===================================================================
--- src/django_gheat/website/static/style.css	(revision 9276)
+++ src/django_gheat/website/static/style.css	(revision 9297)
@@ -178,4 +178,11 @@
 }
 
+.olControlPermalink a{
+  color:#000;
+}
+
+.olControlPermalink a:hover{
+  color:#666;
+}
 
 /* Colorpicker */
@@ -217,3 +224,2 @@
   z-index:2;
 }
-
