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

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -