Map becomes too slow when rendering more than 1000 geoJSON features using GoogleMapsOverlay with stroked enabled. #9227
Unanswered
aravindr0698
asked this question in
Q&A
Replies: 2 comments 1 reply
-
What's your GPU spec? I render 100K features on 1650 without issues. |
Beta Was this translation helpful? Give feedback.
1 reply
-
With attempting to render that many objects I would suggest looking at the deck documentation on using the binary format or async iterables. I suspect a lot of processing is being done on the CPU prior to deck elevating to the GPU for rendering. Using the deck binary format would allow you to in many cases bypass the CPU. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When passing
stroked:true
to create borders around the features while creating an geojsonoverlay, map becomes too slow. Passing stroked as false resolves the issue, but I need borders around my features. I need to render around 10K features on map. Is there any workaround or am I missing something?new GeoJsonLayer({ id: 'airports2', data: 'https://raw.githubusercontent.com/OpenDataDE/State-zip-code-GeoJSON/refs/heads/master/ak_alaska_zip_codes_geo.min.json', // Styles stroked: true, filled: true, pointRadiusMinPixels: 2, lineWidthScale: 20, lineWidthMinPixels: 1, getFillColor: [160, 160, 180, 200], pointRadiusScale: 2000, getFillColor: [200, 0, 80, 180], }),
This is what I'm trying to achieve
Beta Was this translation helpful? Give feedback.
All reactions