Add passthrough of new `locale`, `maprules`, and `presets` URL hash parameters to iD
authorQuincy Morgan <quincy.morgan@icloud.com>
Wed, 23 Jan 2019 17:13:27 +0000 (12:13 -0500)
committerQuincy Morgan <quincy.morgan@icloud.com>
Wed, 23 Jan 2019 17:13:27 +0000 (12:13 -0500)
app/assets/javascripts/edit/id.js.erb

index a85fcef..2ce8974 100644 (file)
@@ -25,6 +25,9 @@ $(document).ready(function () {
     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.locale) params.locale = hashParams.locale;
+    if (hashParams.maprules) params.maprules = hashParams.maprules;
+    if (hashParams.presets) params.presets = hashParams.presets;
 
     if (id.data("gpx")) {
       params.gpx = id.data("gpx");