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

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -