Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Add a popup that appears when hovering over a marker.

Code Block
languagejs
var popup = new mapboxgl.Popup({ offset: 25 })
  .setText('Marker Info'); 
marker.setPopup(popup);

...