Select to view content in your preferred language

Any suggestions for caching GeoJSONLayer data by map tile?

173
0
09-23-2024 04:24 PM
MatthewTeelucksingh
New Contributor

Hey all, just wondering if anyone has an idea of how this could be implemented?

I have a large amount of point data stored as geoparquets  in my back-end indexed by web tile: 

MatthewTeelucksingh_0-1727132888402.png

and am trying to display this data on my Esri map via a GeoJSONLayer:

MatthewTeelucksingh_1-1727133245663.png

Currently I've implemented a back-end that takes in the coordinates of the map extent and the selected layer id and from there performs some geometry logic to determine which webtiles it should load from file storage. Those files are merged and then sent back to the front-end as geojson which gets rendered via the GeoJSONLayer. 

 

Some of the datasets can get very large and so if the user moves the map quickly or zooms out enough the API can take a long time to aggregate all of the tiled data and the GeoJSONLayer spends time re-drawing points that it already has displayed. Does anyone know if there is a straightforward way of caching tiles in a GeoJSONLayer (similar to how WebTileLayers work) to prevent re-drawing unless specified? Or if not if there is any other Esri JS layer that could better accomplish what I want/any low hanging fruit for improving the performance of this application?

Thanks! 

0 Kudos
0 Replies