You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to do a basic map where the feature I am hovering over changes color example
My approach so far is to make 2 layers in my source, 1 with all features from a vector source and 1 which is filtered to a single feature. Then I do this
This works but map.setStyle() takes way too long to re render the map to create a fluid effect.
I know I can edit the style in map.style.layerMap['layerid'] and I can change things in paint or paint.class and use cascade to get the map to update very quickly, however that doesn't help in this case.
Another approach would be to modify the feature's properties such that it complies with a preset filter but there is no setData() for vector tiles and modifying data regured by featuresAt() isn't effective.
Is it possible to put filters inside of the cascade refresh? Or is it possible to update vector tile data? What would be involved in implementing one of these features?
The text was updated successfully, but these errors were encountered:
I am trying to do a basic map where the feature I am hovering over changes color example
My approach so far is to make 2 layers in my source, 1 with all features from a vector source and 1 which is filtered to a single feature. Then I do this
This works but map.setStyle() takes way too long to re render the map to create a fluid effect.
I know I can edit the style in map.style.layerMap['layerid'] and I can change things in paint or paint.class and use cascade to get the map to update very quickly, however that doesn't help in this case.
Another approach would be to modify the feature's properties such that it complies with a preset filter but there is no setData() for vector tiles and modifying data regured by featuresAt() isn't effective.
Is it possible to put filters inside of the cascade refresh? Or is it possible to update vector tile data? What would be involved in implementing one of these features?
The text was updated successfully, but these errors were encountered: