I'm using primefaces 3.4.2. Please take a look the screenshot below.
Left side is gmap and the right side has list of markers called "Aktif Kullanıcılar". I want to create and overlaySelect event (openInfoWindow) when an item clicked on the right list. So I want to create an gmap event that is detached from <p:gmap> tag.
I've tried to use "PrimeFaces.widget.GMap" javascript library in various ways. But I could not get result. I used script below to get "marker id".
Code: Select all
<script type="text/javascript">
function openInfoWindow(mid) {
alert("marker id:" + mid);
var myMap = new PrimeFaces.widget.GMap(document.getElementById("myMap"));
var marker = myMap.getMarker(mid);
}
</script>
I started to think about to reload page when clicked then try to set window of clicked item open default which is an expensive way.
I want to get your opinions.
Best Regards