@include('../partials.header') {{-- Improved Google Maps Blade View (Dynamic Loading & Server-Side Clustering) Changes Made: - Uses map_dynamic.js for fetching/rendering markers based on map bounds. - Requires a backend API endpoint (defined in mapData.apiEndpoint) to serve marker/cluster data. - The external @googlemaps/markerclusterer library is NO LONGER needed or included. - API key loading remains a security concern - load securely from backend. --}} {{-- Include necessary map styling --}} @include('../partials.mapStyle')
{{-- The map container --}}
{{-- Optional: Add a loading indicator --}}

Loading map...

{{-- IMPORTANT: Secure API Key Loading Replace YOUR_SECURELY_LOADED_API_KEY with your key, loaded securely from the backend. The 'callback=initMap' triggers the initialization function in map_dynamic.js. Ensure the 'marker' library is included. --}} {{-- REMOVE or comment out the external marker clusterer library if it was previously included. --}} {{-- Pass data from PHP (Laravel) to JavaScript --}} {{-- Include the dynamic JavaScript file AFTER mapData is defined --}} {{-- Adjust the path based on your public directory structure --}} {{-- Assuming partials.footer handles closing tags --}} {{-- @include("partials.footer") --}}