changer marker red
This commit is contained in:
parent
67b56b5764
commit
b7dc682e2f
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
|
// Register the custom images
|
||||||
// Add event marker
|
// Add event marker
|
||||||
|
|
||||||
final userMarkerImage = await _loadMarkerImage('images/marker.png');
|
final eventMarkerImage = await _loadMarkerImage('images/marker-red.png');
|
||||||
|
|
||||||
// Register the image with Mapbox
|
// Register the image with Mapbox
|
||||||
await mapController.addImage('user-marker', userMarkerImage);
|
await mapController.addImage('user-marker', eventMarkerImage);
|
||||||
await mapController.addSymbol(SymbolOptions(
|
await mapController.addSymbol(SymbolOptions(
|
||||||
geometry: userPosition,
|
geometry: userPosition,
|
||||||
iconImage: 'user-marker', // Custom icon for event
|
iconImage: 'user-marker', // Custom icon for event
|
||||||
iconSize: 0.4,
|
iconSize: 0.2,
|
||||||
));
|
));
|
||||||
|
|
||||||
// Fetch and draw route
|
// Fetch and draw route
|
||||||
|
@ -79,6 +79,7 @@ flutter:
|
|||||||
- .env
|
- .env
|
||||||
- images/search.png
|
- images/search.png
|
||||||
- images/marker.png
|
- images/marker.png
|
||||||
|
- images/marker-red.png
|
||||||
# - images/a_dot_ham.jpeg
|
# - images/a_dot_ham.jpeg
|
||||||
|
|
||||||
# An image asset can refer to one or more resolution-specific "variants", see
|
# An image asset can refer to one or more resolution-specific "variants", see
|
||||||
|
Loading…
x
Reference in New Issue
Block a user