c7c7694ac4ed48d1f07a4bb239788ad3fcc58e95
Publish assets to public/vendor/maps/{css,js}
php artisan vendor:publish --provider="GoNoWare\Maps\MapsServiceProvider" --tag=maps
Publish config to config/vendor/maps.php
php artisan vendor:publish --provider="GoNoWare\Maps\MapsServiceProvider" --tag=config
Add styles to </head>
@mapstyles
Add scripts before </body>
@mapscripts
Show map
@map([
'lat' => '51',
'lng' => '0',
'zoom' => '5',
])
Show map with one marker
@map([
'lat' => '51',
'lng' => '0',
'zoom' => '5',
'markers' => [[
'lat' => '51',
'lng' => '0',
]],
])
Show map with two markers
@map([
'lat' => '48.134664',
'lng' => '11.555220',
'zoom' => '13',
'markers' => [[
'lat' => '48.134664',
'lng' => '11.555220',
], [
'lat' => 11,
'lng' => 11,
]],
])
Adjust map height
.map-container {
height: 500px;
}
Description
Languages
PHP
60.9%
Blade
39.1%