I created an application, which shows a custom marker in Google Maps when you tap in the map, but I don't find a way to change the size of the marker... Does anybody know how I can do this?
This are parts of m code:
createMarker(context) {
if (customIcon == null) {
ImageConfiguration configuration = createLocalImageConfiguration(context);
BitmapDescriptor.fromAssetImage(configuration, 'assets/Boot-Pfeil2.png')
.then((icon) {
setState(() {
customIcon = icon;
});
});
}
}
Marker m = Marker(
markerId: MarkerId('1'),
icon: customIcon,
position: cordinate);
setState(() {
markers.add(m);
});