Loading subset of vector tile properties into GPU when using MVTLayer #9725
Unanswered
alaws-USGS
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using the MVTLayer to display vector tiles (as one does 😄 ) and the vector tiles I have generated have a large number of geometries (~90,000) with approximately 240 properties per geometry. This has caused issues with trying to display the data via overloading the array buffers and before I recreate my tiles, I wanted to check if it would be possible to handle the filtering on the front-end. First, a single one of my geometries looks about like this (decoded using
mapbox-vector-tile
):Ideally, I will only need two of the properties: HUC12 and a time slice ie 2000-01, for display purposes, so I would only want those brought into the GPU and the remainder not kept in memory or the GPU.
So far, I have explored trying to use
loadOptions
and the MVTLoader to specify props like this:I have also looked into using
renderSublayers
similar to this former post in order to control the property and even started looking into how the GeoJsonLayer uses binary data but could not figure out if there was an avenue there.If anyone has been able to do this, I would love to hear how you did it and I'd be happy to answer any questions or fill in any details I may have left out.
Beta Was this translation helpful? Give feedback.
All reactions