The marker_icon package enables developers to convert various image sources—such as Widgets, local images, network images, and SVG files—into BitmapDescriptor objects for use in Google Maps markers within the google_maps_flutter plugin. This simplifies custom marker creation by eliminating the need for manual bitmap conversion. It supports both Android and iOS platforms, ensuring consistent behavior across devices. The package is lightweight and integrates seamlessly into existing Flutter applications requiring dynamic or customized map markers.
Use cases
- Custom map pin icons
- Dynamic marker generation
- SVG-based markers
- Network image markers
- Local asset markers
Key features
- Supports Widgets as markers
- Converts SVG files to BitmapDescriptor
- Handles network and local images
- Cross-platform (Android & iOS)
- Simple integration with google_maps_flutter
Suitable for
- Flutter apps with Google Maps
- Customizable map markers
- Apps using SVG assets
- Developers needing dynamic markers
- UI-heavy mapping features
Considerations
- Requires google_maps_flutter dependency
- Bitmap conversion may impact performance with many markers
- SVG rendering depends on svg package
- Limited to static image conversion
- Not suitable for real-time video or animated markers