javascript - mapboxgl.Marker() add to Layer instead Map -
i want use mapboxgl.marker() since need build custom < div> , stylize css.
need use:
- map.queryrenderedfeatures() - information visible markers on screen
- map.setlayoutproperty() - filter markers groups
question: can use mapboxgl.marker() place on layer, not on map?
or can way of use mapboxgl.marker() map.queryrenderedfeatures() , map.setlayoutproperty()?
i see possible hack: combine layer invisible layer-markers, , on them set mapboxgl.marker(). allow me use map.queryrenderedfeatures(), map.setlayoutproperty(id, 'visibility', 'none') still not work.
Comments
Post a Comment