...
Add a popup that appears when hovering over a marker.
Code Block | ||
---|---|---|
| ||
var popup = new mapboxgl.Popup({ offset: 25 })
.setText('Marker Info');
marker.setPopup(popup); |
...
...
Add a popup that appears when hovering over a marker.
Code Block | ||
---|---|---|
| ||
var popup = new mapboxgl.Popup({ offset: 25 })
.setText('Marker Info');
marker.setPopup(popup); |
...