Merge pull request 'changer marker red' (#16) from hotfix/change-icon into main

Reviewed-on: #16
This commit is contained in:
v4l3n71n 2024-11-17 15:55:35 +01:00
commit 5e0b541786
3 changed files with 4 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

View File

@ -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

View File

@ -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