I have a leaflet map with several markers on.
Each of the markers have similar html to
<img class="leaflet-marker-icon leaflet-clickable leaflet-zoom-animated" src="leaflet/dist/images/marker-icon.png" style="margin-left: -12px; margin-top: -41px; width: 25px; height: 41px; transform: translate(435px, 200px); z-index: 200;" title="location_1">
When the marker is clicked the popup opens above the marker.
What im trying to do is add links outside of the map, relating to each marker.
Each of the markers have a unique title. So could I just create a list of html links, with the title as an identifier such as
<a class="location_1">location 1</a>
<a class="location_2">location 2</a>
Then bind these links to the corresponding marker in the leaflet map?
How would I best achieve this?