changer marker red #16
BIN
covas_mobile/images/marker-red.png
Normal file
BIN
covas_mobile/images/marker-red.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 36 KiB |
@ -244,14 +244,14 @@ class _MapboxPagesState extends State<MapboxPages> with ShowErrorDialog {
|
||||
// Register the custom images
|
||||
// Add event marker
|
||||
|
||||
final userMarkerImage = await _loadMarkerImage('images/marker.png');
|
||||
final eventMarkerImage = await _loadMarkerImage('images/marker-red.png');
|
||||
|
||||
// Register the image with Mapbox
|
||||
await mapController.addImage('user-marker', userMarkerImage);
|
||||
await mapController.addImage('user-marker', eventMarkerImage);
|
||||
await mapController.addSymbol(SymbolOptions(
|
||||
geometry: userPosition,
|
||||
iconImage: 'user-marker', // Custom icon for event
|
||||
iconSize: 0.4,
|
||||
iconSize: 0.2,
|
||||
));
|
||||
|
||||
// Fetch and draw route
|
||||
|
@ -79,6 +79,7 @@ flutter:
|
||||
- .env
|
||||
- images/search.png
|
||||
- images/marker.png
|
||||
- images/marker-red.png
|
||||
# - images/a_dot_ham.jpeg
|
||||
|
||||
# An image asset can refer to one or more resolution-specific "variants", see
|
||||
|
Loading…
x
Reference in New Issue
Block a user