How to add same-page highlight links


User guides


Working with maps

Since v4.14 it is possible to add links outside the map which highlight a specific marker.

Example link: <a href="#" class="mmp-highlight" data-marker="1">Link</a>

Available options:

  • data-marker="id" The marker to be highlighted
  • data-map="id" Target a map with a specific ID only. Useful when multiple maps are on the same page
  • data-scroll="true|false" Whether to scroll the map into view. Defaults to true
  • data-open="true|false" Whether to open the popup. Defaults to true

Updated on 29 May 2022