rorystephenson / flutter_map_supercluster

Very fast Marker clustering for flutter_map. Supports efficient adding/removing of Markers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Controller replaceAll() throws error

tratteo opened this issue · comments

When using the SuperclusterMutableController method replaceAll(), the following error is thrown and the markers are not shown.

image

@tratteo It looks like dart doesn't like something that is being sent to another isolate. If you don't have too many markers try suggestion number 2 here: #2 (comment) .

Otherwise it's a case of figuring out what dart doesn't like about your Markers or clusterDataExtractor.

@tratteo note that the newest release 4.0.0 simplifies configuring the map to use isolates or not. See the docs for IndexBuilders. I'm closing this now but if your problem persists let me know.