A flexible flutter package for creating various shapes of highly customizable google maps markers with optional labels.
APACHE-2.0 License
A flexible package for creating various shapes of highly customizable markers with optional labels.
Use this package in your Flutter app to:
google_maps_flutter
google_maps_flutter
GoogleMapsCustomMarker.createCustomMarker()
Marker pinMarker = await GoogleMapsCustomMarker.createCustomMarker(
marker: const Marker(
markerId: MarkerId('pin'),
position: LatLng(49,-123),
),
shape: MarkerShape.pin,
title: '99',
);
Marker circleMarker = await GoogleMapsCustomMarker.createCustomMarker(
marker: const Marker(
markerId: MarkerId('circle'),
position: LatLng(49.01,-123),
),
shape: MarkerShape.circle,
title: '99',
);
Marker bubbleMarkerCustomized = await GoogleMapsCustomMarker.createCustomMarker(
marker: const Marker(
markerId: MarkerId('bubble'),
position: LatLng(49.02,-123),
),
shape: MarkerShape.bubble,
title: 'Customize Me!',
backgroundColor: GoogleMapsCustomMarkerColor.markerYellow.withOpacity(.8),
foregroundColor: Colors.black,
textSize: 38,
enableShadow: false,
padding: 150,
textStyle: const TextStyle(decoration: TextDecoration.underline),
imagePixelRatio: 1.5,
bubbleOptions: BubbleMarkerOptions(
anchorTriangleWidth: 32,
anchorTriangleHeight: 48,
cornerRadius: 12,
),
);
_markers.addAll([pinMarker, circleMarker, bubbleMarkerCustomized]);
This package was developed to help more easily create beautiful, semantic maps.
If you have suggestions for changes, additions, or would like to contribute, that is more than welcome.