Created
January 30, 2016 03:46
2016 Update jQuery plugin for creating Google Maps from semantic markup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).on('click', location_link_selector ,function(e){ | |
e.preventDefault(); | |
var marker_index = parseInt($(this).attr('href').split('#')[1], 10); | |
google.maps.event.trigger(gmarkers[marker_index], "click"); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(location_link_selector).live('click' ,function(e){ | |
e.preventDefault(); | |
var marker_index = parseInt($(this).attr('href').split('#')[1], 10); | |
google.maps.event.trigger(gmarkers[marker_index], "click"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This works. Thank you!