]> git.openstreetmap.org Git - rails.git/commitdiff
Correct name of zoom argument for Potlatch 2
authorTom Hughes <tom@compton.nu>
Wed, 1 Mar 2017 14:06:05 +0000 (14:06 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 1 Mar 2017 14:06:05 +0000 (14:06 +0000)
Fixes #1471

app/assets/javascripts/edit/potlatch2.js.erb

index 9ef0060795c83e8af4054b3b3068e5772ae87291..d5c6ecd7d80119338a96d5c3dac9d8aea4647797 100644 (file)
@@ -34,13 +34,13 @@ $(document).ready(function () {
   if (potlatch.data("lat") && potlatch.data("lon")) {
     flashvars.lat = potlatch.data("lat");
     flashvars.lon = potlatch.data("lon");
-    flashvars.scale = potlatch.data("zoom");
+    flashvars.zoom = potlatch.data("zoom");
   } else {
     var mapParams = OSM.mapParams();
 
     flashvars.lat = mapParams.lat;
     flashvars.lon = mapParams.lon;
-    flashvars.scale = mapParams.zoom || 17;
+    flashvars.zoom = mapParams.zoom || 17;
   }
   
   if (potlatch.data("token")) {