-
-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Markers | when adding markers with different icon types at the same time, markers take only one icon type #541
Comments
can you shows us example to identify the issue |
yep here you go:
} |
i gave 4 different icons for 4 markers, but all markers will be created with the last icon which is fire_extinguisher |
you need to add await before addMarker |
yes, now I'm adding a wait, but I have an average of 800-1000 markers on the map, and waiting for each marker is very slow, it's time-consuming and inconvenient, so it would be great if there was an option to add all the markers at the same time with different types of icons , this will really improve performance. |
is those markers all of them has it own icon ? |
there is only 4 type of icons, but about 200 markers have one type of icon, 300 markers another and so on, boundingbox it seems interesting thing, could you give simple example how can i use it in my case? |
better use staticPoints |
it is okey, take your time. |
I've been stuck with this problem for about a week, it's okay if I wait a little longer. |
you can use our mixin staticPoints: [
StaticPositionGeoPoint(
"marker1",
const MarkerIcon(
icon: Icon(
icon1,
color: Colors.green,
size: 32,
),
),
[
/// here put GeoPoint if already there
],
),
StaticPositionGeoPoint(
"marker2",
const MarkerIcon(
icon: Icon(
icon2,
color: Colors.green,
size: 32,
),
),
[
/// here put GeoPoint if already there
],
),
Then use the mapController to set points as in the example below await controller.setStaticPosition(
[
//GeoPoint
],
"marker1",
);
|
The first problem is that the controller can't add a list of icons, which is fine, but it creates chaos when adding markers with different icon types.
The text was updated successfully, but these errors were encountered: