Map settings
<%= render 'settings/navigation' %>
Please remember, that using a custom tile URL may result in extra costs. Check your map tile provider's terms of service for more information.
<%= form_for :maps,
url: settings_maps_path,
method: :patch,
autocomplete: "off",
data: { turbo_method: :patch, turbo: false } do |f| %>
Tile Usage (Last 7 Days)
<%= line_chart(
@tile_usage,
height: '200px',
xtitle: 'Days',
ytitle: 'Tiles',
suffix: ' tiles loaded'
) %>
Total usage this week: <%= @tile_usage.sum { |_, count| count } %> tiles
<%= f.submit 'Save changes', class: "btn btn-primary", data: { map_preview_target: "saveButton" } %>
<% end %>