Fix map views for gonoware/laravel-maps compatibility

- Add @push('styles') with @mapstyles to map views
- Fix markers parameter format (pass as 'markers' array, not string)
- Add null checks for location data
- Add @stack('styles') to layout for conditional style loading

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-19 02:33:22 +00:00
parent f37cb0b20b
commit 09a37c08a3
4 changed files with 51 additions and 42 deletions

View File

@@ -21,7 +21,7 @@
<link href="{{ asset('css/app.css') }}" rel="stylesheet">
<link href="{{ asset('css/bootstrap-tagsinput.css') }}" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
@mapstyles
@stack('styles')
</head>
<body>
<div id="app" style="height: 100%">