diff --git a/covas_mobile/images/marker-red.png b/covas_mobile/images/marker-red.png new file mode 100644 index 0000000..5937369 Binary files /dev/null and b/covas_mobile/images/marker-red.png differ diff --git a/covas_mobile/lib/pages/MapboxPages.dart b/covas_mobile/lib/pages/MapboxPages.dart index 6fab826..69cb99f 100644 --- a/covas_mobile/lib/pages/MapboxPages.dart +++ b/covas_mobile/lib/pages/MapboxPages.dart @@ -244,14 +244,14 @@ class _MapboxPagesState extends State 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 diff --git a/covas_mobile/pubspec.yaml b/covas_mobile/pubspec.yaml index d418a0d..91f4711 100644 --- a/covas_mobile/pubspec.yaml +++ b/covas_mobile/pubspec.yaml @@ -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