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 5e7fdd0..ed36385 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) %>';