I'm trying to set a custom icon for the markers of my map, in my Flutter app. Since BitmapDescriptor.fromAsset()
is deprecated, I'm sruggling to find how to use BitmapDescriptor.fromAssetImage()
.
I did not find any doc or Stackoverflow question about this.
This is the current way I'm creating it (without the custom image):
Marker(
markerId: MarkerId(pos.toString()),
position: pos,
infoWindow: InfoWindow(
title: store['store_name'],
snippet: '',
),
icon: BitmapDescriptor.defaultMarker));