We need some help using infowindow.
Marina has sent this code to me, but I am not getting success when I click on button.
I must to use some part of the code or the entire code?
We need to change the long and lat?
How Can I to put an specific information of the a column on the infowindow?
We really need to use infowindow.
The support has sent this code to put on maker propriety on click.
-----------------------------------------var myLatlng = new google.maps.LatLng(21.291334, -157.840791);
var mapOptions = {
zoom: 5,
center: myLatlng,
mapTypeId: google.maps.MapTypeId.ROADMAP,
}
var marker = new google.maps.Marker({
position: myLatlng,
title: "Testmarker1"
});
var infowindow = new google.maps.InfoWindow({
content: 'Hello'
});
//clicklistener
google.maps.event.addListener(marker, 'click', function() {
/***was/
/****|/
/***|/
/***V/
//infowindow.open(map, marker);
/**now/
/****|/
/***|/
/***V*/
infowindow.open(Tiggr("googlemap1").gmap, marker);
});
Tiggr("googlemap1").options.mapElement.gmap('addMarker', marker);
Tiggr("googlemap1").options.mapElement.gmap(mapOptions);
Tiggr("googlemap1").options.mapElement.gmap("refresh");