]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/_key.html.erb
Add an extra null pointer check that can trigger in tests
[rails.git] / app / views / site / _key.html.erb
index 22261900d60ad3ba61ce94c8378c6d7a737c9463..e990071c850b65dee3ba7dc2ac7cbbce7bb5497b 100644 (file)
@@ -17,7 +17,7 @@
   }
 
   function updateMapKey() {
-    var layer = map.baseLayer.name.toLowerCase().replace(/\s+/g, "_");
+    var layer = map.baseLayer.keyid;
     var zoom = map.getZoom();
 
     <%= remote_function :update => "sidebar_content",