Skip to content
Discussion options

You must be logged in to vote

Custom layers are more designed to interact with the gl context and less about using source cache and stuff like that.
But I don't see a problem with asking the user to create a layer of circles with a radius of 0 or non visible to allow this layer to query the source features. This is basically what I did here (minus the usage of the webgl part):
Using a geojson to cluster the points:
https://github.com/IsraelHikingMap/Site/blob/776478d6f20d4587fc721b9d042762629b35700b/IsraelHiking.Web/src/application/components/map/layers-view.component.html#L16-L22
Add a source and a transparent layer:
https://github.com/IsraelHikingMap/Site/blob/776478d6f20d4587fc721b9d042762629b35700b/IsraelHiking.We…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@frodrigo
Comment options

@HarelM
Comment options

@frodrigo
Comment options

@HarelM
Comment options

Answer selected by wazolab
@wazolab
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants