Skip to content

Commit

Permalink
Fix for maps leaflet iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
jywarren authored Nov 29, 2018
1 parent 58db2b8 commit f9f0948
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/map/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
</div>
<% if @node.map %>
<iframe style="width:100%;border:none;background:#ddd;margin-bottom:8px;" height="375" src="//archive.publiclab.org/leaflet/?tms=<%= @node.map.tms %>&lon=<%= @node.lon %>&lat=<%= @node.lat %>&zoom=<%= @node.map.min_zoom+1 %>"></iframe>
<iframe style="width:100%;border:none;background:#ddd;margin-bottom:8px;" height="375" src="https://publiclab.github.io/plots-leaflet-viewer/?tms=<%= @node.map.tms %>&lon=<%= @node.lon %>&lat=<%= @node.lat %>&zoom=<%= @node.map.min_zoom+1 %>"></iframe>
<% end %>

<div class="row">
Expand All @@ -23,7 +23,7 @@

<div class="btn-toolbar">
<div class="btn-group">
<a class="btn btn-sm btn-danger" rel="tooltip" title="View the map in a full-screen web viewer" href="//archive.publiclab.org/leaflet/?tms=<%= @node.map.tms %>&lon=<%= @node.lon %>&lat=<%= @node.lat %>&zoom=17">Web viewer</a>
<a class="btn btn-sm btn-danger" rel="tooltip" title="View the map in a full-screen web viewer" href="https://publiclab.github.io/plots-leaflet-viewer/?tms=<%= @node.map.tms %>&lon=<%= @node.lon %>&lat=<%= @node.lat %>&zoom=17">Web viewer</a>
<a class="btn btn-sm btn-success" rel="tooltip" title="" href="<%= @node.map.field_jpg_url_value %>">JPG (<%= @node.map.field_jpg_filesize_value.to_i %> MB)</a>
<a class="btn btn-sm btn-info" rel="tooltip" title="" href="<%= @node.map.field_geotiff_url_value %>">GeoTiff (<%= @node.map.field_geotiff_filesize_value.to_i %> MB)</a>
<a class="btn btn-sm btn-warning" rel="tooltip" title="Tiled Map Service (for developers)" href="<%= @node.map.field_tms_url_value %>">TMS</a>
Expand Down

0 comments on commit f9f0948

Please sign in to comment.