mapbox-maps-flutter icon indicating copy to clipboard operation
mapbox-maps-flutter copied to clipboard

Widget annotatio zoom level - Mapbox, Flutter (mapbox_maps_flutter)

Open JasonEastar opened this issue 8 months ago • 2 comments

Image

I am displaying markers for mapbox (flutter). But depending on zoom level to re-render markers. markers when zoomed in will show image, text up far display will only show icons

when I zoom in, it snaps widget -> causing lag Is there any way to optimize this. please help me!

JasonEastar avatar May 15 '25 11:05 JasonEastar

I am using Widget -> Capture Widget -> Unit8list -> draw to mapbox to create markers.

When changing zoom, the widget has to be retaken, so it lags when there are too many markers.

JasonEastar avatar May 15 '25 11:05 JasonEastar

@JasonEastar Most Flutter map packages, including GMaps, assume that an image marker is sufficient, which is largely ineffective for various map use cases. Converting to an image on canvas, aside from what you mentioned, the widget won’t be able to access the application context during drawing, which has its own set of limitations. While flutter_map with MapBox’s static tile layer offers a better experience in this regard, MapBox Static is four times more expensive than the standard MapBox. If MapBox had a Flutter_map tile layer similar to MapLibre’s, I believe it would be a better solution for Flutter.

Given Maps is a crucial component for our applications, we’ve created a wrapper around most Flutter Maps, including Mapbox, which is publicly available. You can check it out at: https://pub.dev/packages/generic_map

lume-code avatar Jun 01 '25 04:06 lume-code