baderajhar
New Member
I'm trying to have an interactive sidebar for my GoogleMap visualization; this sidebar should include a list of filtered markers and when I click on any link it triggers the infowindow inside the map, just like this (http://jsfiddle.net/doktormolle/HNd6H/).
I went through two threads (https://goo.gl/hDQevS) and (https://goo.gl/xVm4sB) and I didn't find an answer to two questions:
I went through two threads (https://goo.gl/hDQevS) and (https://goo.gl/xVm4sB) and I didn't find an answer to two questions:
- How to get the list of filtered markers in order to create HTML links?
- How to trigger infowindow from external HTML link? I tried the below JS code and it returned "Uncaught TypeError: Cannot read property '0' of undefined at HTMLAnchorElement.<anonymous>"
JavaScript:
requirejs(['fab/fabrik'], function () {
var h = document.getElementById("link");
h.addEventListener("click", function (viz) {
google.maps.event.trigger(viz.markers[0], 'click');
});
});