]> git.openstreetmap.org Git - rails.git/commitdiff
Pass through `photo_overlay` parameter
authorBryan Housel <bryan@mapbox.com>
Mon, 17 Jun 2019 21:26:24 +0000 (17:26 -0400)
committerBryan Housel <bryan@mapbox.com>
Mon, 17 Jun 2019 21:26:24 +0000 (17:26 -0400)
(re: https://github.com/openstreetmap/iD/issues/6492)

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

index 2ce8974f5d0decd3d55bbfe5fb74bd270d184517..7755195d46de3a33d5cb79115deb81d1e555963b 100644 (file)
@@ -20,14 +20,15 @@ $(document).ready(function () {
 
     if (hashParams.background) params.background = hashParams.background;
     if (hashParams.comment) params.comment = hashParams.comment;
-    if (hashParams.hashtags) params.hashtags = hashParams.hashtags;
-    if (hashParams.source) params.source = hashParams.source;
     if (hashParams.disable_features) params.disable_features = hashParams.disable_features;
-    if (hashParams.offset) params.offset = hashParams.offset;
-    if (hashParams.walkthrough) params.walkthrough = hashParams.walkthrough;
+    if (hashParams.hashtags) params.hashtags = hashParams.hashtags;
     if (hashParams.locale) params.locale = hashParams.locale;
     if (hashParams.maprules) params.maprules = hashParams.maprules;
+    if (hashParams.offset) params.offset = hashParams.offset;
+    if (hashParams.photo_overlay) params.photo_overlay = hashParams.photo_overlay;
     if (hashParams.presets) params.presets = hashParams.presets;
+    if (hashParams.source) params.source = hashParams.source;
+    if (hashParams.walkthrough) params.walkthrough = hashParams.walkthrough;
 
     if (id.data("gpx")) {
       params.gpx = id.data("gpx");