void onMapCreated(MapboxMapController mapboxMap) async {
await getJson();
// Add the GeoJSON source to the map
await mapboxMap.addSource(
"fills",
GeojsonSourceProperties(
data: geojson,
cluster: true,
clusterMaxZoom: 14, // Max zoom to cluster points on
clusterRadius:
50 // Radius of each cluster when clustering points (defaults to 50)
));
});
update();
}
I did the same as this code, but when i add this properties
cluster: true,
clusterMaxZoom: 14, // Max zoom to cluster points on
clusterRadius: 50 // Radius of each cluster when clustering points (defaults to 50)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I did the same as this code, but when i add this properties
it crashes the app!!!