<%= javascript_include_tag "edit/id" %>
-<div id="map">
- <% data = { :key => ID_KEY } -%>
- <% data[:lat] = @lat if @lat -%>
- <% data[:lon] = @lon if @lon -%>
- <% data[:gpx] = trace_data_url(params[:gpx], :format => :xml) if params[:gpx] -%>
- <% data[:url] = id_url(:locale => params[:locale]) -%>
- <%= content_tag :iframe, "", :frameBorder => 0, :id => "id-embed", :class => "id-embed", :allowfullscreen => "", :data => data %>
+<div id="map" class="h-100 overflow-hidden">
+ <% data = { :configured => Settings.key?(:id_application) }
+ data[:lat] = @lat if @lat
+ data[:lon] = @lon if @lon
+ data[:gpx] = trace_data_url(params[:gpx], :format => :xml) if params[:gpx]
+ data[:url] = id_url(:locale => params[:locale]) %>
+ <%= tag.iframe "", :frameBorder => 0, :id => "id-embed", :class => "w-100 h-100", :allowfullscreen => "", :data => data %>
</div>