]> git.openstreetmap.org Git - rails.git/commitdiff
Support passing imagery offset parameter to iD
authorBryan Housel <bryan@mapbox.com>
Wed, 4 May 2016 05:27:44 +0000 (01:27 -0400)
committerBryan Housel <bryan@mapbox.com>
Wed, 4 May 2016 05:27:44 +0000 (01:27 -0400)
app/views/site/_id.html.erb

index 5e7fdd04cf286c8acf0262cddd820d3b537059e8..ed36385bd47822b330a8561cfb3250135e99eb99 100644 (file)
     if (hashParams.background) {
       params.background = hashParams.background;
     }
-
     if (hashParams.comment) {
       params.comment = hashParams.comment;
     }
+    if (hashParams.offset) {
+      params.offset = hashParams.offset;
+    }
 
 <% if params[:gpx] -%>
     params.gpx = '<%= trace_data_url(params[:gpx], :format => :xml) %>';