Closed NXC-Controls closed 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 :
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.
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
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">