javascript - Mapbox Markers - Dynamic markers on one layer -


Is it possible to have only one layer in the Mapbox, on which I will add several markers (like when the user zooms) On the map) or dynamically delete them (for example, when the user is zoomed out)?

One more question related to the first one: Is a marker a layer? If so, Class L. What is the difference between a marker and a layout?

create one, which is defined as a layer of a group of markers After this you can add and remove markers programmatically in this way:

  var marker group = l.mapbox. FeatureGear (geojson) .addTo (map); MarkerGroup.addLayer (marker); MarkerGroup.removeLayer (marker); As a marker is a layer or not, the answer is of a kind ... A marker is a UI layer, as is distinct from a raster layer and a vector layer < / P> 

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -