LarsWiegers / laravel-maps

Your laravel maps libary.
https://github.com/LarsWiegers/laravel-maps
MIT License
254 stars 35 forks source link

help with Leaflet.awesome-markers #54

Closed NXC-Controls closed 3 months ago

NXC-Controls commented 4 months ago

im tyring to use https://github.com/lennardv2/Leaflet.awesome-markers tried to pass icon as suggested but getting error

$markers[] = [ 'lat' => $record->latitude, 'long' => $record->longitude, 'info' => $info, 'icon' => L.AwesomeMarkers.icon(array( 'icon' => 'spinner', 'prefix' => 'fa',
'markerColor' => 'red' )) ];

and

<x-maps-leaflet id="map" style="height: 400px;" tile-host="mapbox" :zoomLevel="11" :centerPoint="['lat' => 23.0225, 'long' => 72.5714]"           :markers="$markers">

tarikbouchaala commented 3 months ago

im tyring to use https://github.com/lennardv2/Leaflet.awesome-markers tried to pass icon as suggested but getting error

$markers[] = [ 'lat' => $record->latitude, 'long' => $record->longitude, 'info' => $info, 'icon' => L.AwesomeMarkers.icon(array( 'icon' => 'spinner', 'prefix' => 'fa', 'markerColor' => 'red' )) ];

and

<x-maps-leaflet id="map" style="height: 400px;" tile-host="mapbox" :zoomLevel="11" :centerPoint="['lat' => 23.0225, 'long' => 72.5714]"           :markers="$markers">

I don't know how to use the library in the laravel maps but for me when I wanted a marker to look different I just change the icon property like this : The marker.png is an icon

LarsWiegers commented 3 months ago

Hey @NXC-Controls and @tarikbouchaala this library does not support working with https://github.com/lennardv2/Leaflet.awesome-markers. We only support what is said in the readme.

tarikbouchaala commented 3 months ago

Hey @NXC-Controls and @tarikbouchaala this library does not support working with https://github.com/lennardv2/Leaflet.awesome-markers. We only support what is said in the readme.

Yeah yeah I gave him an alternative