You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prompted by this StackOverflow question. If you simply add a marker to the map, following the example in the API docs:
var marker = new mapboxgl.Marker()
.setLngLat([30.5, 50.5])
.addTo(map);
You don't actually get a visible marker. A <div> element is created, with class .mapboxgl-marker, but there is no styling associated with it, so it's completely invisible.
Prompted by this StackOverflow question. If you simply add a marker to the map, following the example in the API docs:
You don't actually get a visible marker. A
<div>
element is created, with class.mapboxgl-marker
, but there is no styling associated with it, so it's completely invisible.Example: https://codepen.io/stevebennett/pen/RpKVjy
(remove the '-REMOVETHIS' to make the marker visible...)
If this is intended behaviour, it seems really confusing, newbie-unfriendly, and ought to be better documented.
The text was updated successfully, but these errors were encountered: