dotswan / filament-map-picker

Map Picker is a Filament custom field designed to simplify the process of choosing a location on a map and obtaining its geo-coordinates.
MIT License
57 stars 13 forks source link

can put source and destination coordinates ?? #36

Open eterna2000 opened 1 month ago

eterna2000 commented 1 month ago

can put two coordinates e.g one is my current locations and second is static destination location ? i dont know how put more then one coordinates into map

Map::make('location') ->label('') ->columnSpanFull() ->defaultLocation(latitude: 41.77425, longitude: 44.80220) ->extraStyles([ 'border-radius: 5px' ]) ->showMarker() // ->markerColor("#ef4444") ->showFullscreenControl() ->showZoomControl() // ->draggable() ->tilesUrl("https://tile.openstreetmap.de/{z}/{x}/{y}.png") ->zoom(18) // ->liveLocation(true, true, 5000) ->detectRetina('false') ->showMyLocationButton() ->extraTileControl([]) ->extraControl([ 'zoomDelta' => 1, 'zoomSnap' => 2, ]) `

mohaphez commented 2 weeks ago

Hi @eterna2000,

Unfortunately, the multiple coordinates feature is not yet available in the latest version. However, we can work on implementing this feature moving forward.