2024-06-12 15:10:53 -04:00
|
|
|
<% content_for :title, 'Map' %>
|
|
|
|
|
|
2025-11-20 16:36:58 -05:00
|
|
|
<%= render 'shared/map/date_navigation', start_at: @start_at, end_at: @end_at %>
|
2025-10-14 08:21:48 -04:00
|
|
|
|
2025-10-30 14:16:38 -04:00
|
|
|
<!-- Map Container - Fills remaining space -->
|
|
|
|
|
<div class="w-full h-full">
|
|
|
|
|
<div
|
|
|
|
|
id='map'
|
|
|
|
|
class="w-full h-full"
|
|
|
|
|
data-controller="maps points add-visit family-members"
|
|
|
|
|
data-points-target="map"
|
|
|
|
|
data-api_key="<%= current_user.api_key %>"
|
|
|
|
|
data-self_hosted="<%= @self_hosted %>"
|
|
|
|
|
data-user_settings='<%= current_user.safe_settings.settings.to_json %>'
|
|
|
|
|
data-user_theme="<%= current_user&.theme || 'dark' %>"
|
|
|
|
|
data-coordinates='<%= @coordinates.to_json.html_safe %>'
|
|
|
|
|
data-tracks='<%= @tracks.to_json.html_safe %>'
|
|
|
|
|
data-distance="<%= @distance %>"
|
|
|
|
|
data-points_number="<%= @points_number %>"
|
|
|
|
|
data-timezone="<%= Rails.configuration.time_zone %>"
|
|
|
|
|
data-features='<%= @features.to_json.html_safe %>'
|
2025-11-24 13:45:09 -05:00
|
|
|
data-user_tags='<%= current_user.tags.ordered.select(:id, :name, :icon, :color).as_json.to_json.html_safe %>'
|
|
|
|
|
data-home_coordinates='<%= @home_coordinates.to_json.html_safe %>'
|
2025-10-30 14:16:38 -04:00
|
|
|
data-family-members-features-value='<%= @features.to_json.html_safe %>'
|
|
|
|
|
data-family-members-user-theme-value="<%= current_user&.theme || 'dark' %>">
|
|
|
|
|
<div data-maps-target="container" class="w-full h-full">
|
|
|
|
|
<div id="fog" class="fog"></div>
|
|
|
|
|
</div>
|
2024-05-23 14:12:23 -04:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2024-08-28 14:24:35 -04:00
|
|
|
<%= render 'map/settings_modals' %>
|
2025-11-24 13:45:09 -05:00
|
|
|
|
|
|
|
|
<!-- Include Place Creation Modal -->
|
|
|
|
|
<%= render 'shared/place_creation_modal' %>
|