-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add marker in source #2552
Comments
Hi @JSMap! Fundamentally, "markers" are an idea from image tiled maps that don't make as much sense for vector maps. In a vector map, you can create "markers" with a GeoJSON source and a symbol layer. Duplicate of #656 |
OK but do you have a solution to add a geojson feature to the source? |
@lucaswoj Adding markers to a map is really basic functionality. I put it to you that most people, if they knew how difficult it is to render a few hundred markers with custom styles to a map, wouldn't even consider using Mapbox for a project. The attitude I've seen in these issues regarding markers is really disconcerting, and will ensure that a lot of users migrate to Google Maps. |
I've fixed the link above, and here are two more examples of how to add markers (both DOM elements, and symbol layers) in gl-js |
Hi,
How to replicate the same code with Mapbox GL ? I would like to add some dynamic marker in one Source.
Thank you
The text was updated successfully, but these errors were encountered: