-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Image url in markers #1760
Comments
It's not yet possible to load marker images from an external source; they must be included in the style sprite. See #358 for the feature request. |
Isn't this possible via Image sources? e.g. https://www.mapbox.com/mapbox-gl-js/example/image-on-a-map/ |
Images sources don't behave as markers: when you're scrolling on the map they don't keep their size. The only solution that I found for the moment is to add a popup element for each image marker but it's not very clean. |
Maybe a solution to implement in the Mapbox GL library : https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Drawing_DOM_objects_into_a_canvas ? |
I have some images hosted on AWS that I would like to display them on the map like markers (a popup is assigned on each).
They are loaded dynamically from my server, what is the best approach to integrate these images like the example?
Thanks for your help ;)
The text was updated successfully, but these errors were encountered: