<%= t ".geo_uri" %>

<%= t ".image" %>

<%= t ".only_layers_exported_as_image" %>
<%= label_tag "mapnik_format", t(".format"), :class => "col-auto col-form-label" %>
<%= select_tag "mapnik_format", options_for_select(%w[png jpeg webp svg pdf].map { |f| [f.upcase, f] }), :class => "form-select w-auto", :required => true %>
<%= label_tag "mapnik_scale", t(".scale"), :class => "col-auto col-form-label" %>
1 : <%= text_field_tag "mapnik_scale", nil, :class => "form-control", :autocomplete => "off" %>
<%= label_tag "image_filter", t(".custom_dimensions"), :class => "form-check-label" %> <%= check_box_tag "image_filter", nil, :class => "form-check-input" %>
<% %w[minlon minlat maxlon maxlat lat lon].each do |name| %> <%= hidden_field_tag "mapnik_#{name}", nil, :name => name %> <% end %> <% { :format => "mapnik", :zoom => 0, :width => 0, :height => 0 }.each do |name, value| %> <%= hidden_field_tag "map_#{name}", value, :name => name %> <% end %>

<%= t ".image_dimensions_html", **%w[layer width height] .to_h { |key| [key.to_sym, content_tag(:span, "", :id => "mapnik_image_#{key}")] } %>

<%= submit_tag t(".download"), :class => "btn btn-primary", :data => { :turbo_submits_with => t(".downloading") } %>