Title not showing in map
I need the title of the marker to show when the user clicks the marker on there phone. OR i need the title to always show. I have been trying for hours and read every post I can find on Appery support / internet. Here is the code I came up with:
The markers populate and the titles show when I mouse over but it does not work on my device.
I am execute the code on button click.
var list_location = localStorage.getItem('mysqlFireCompaniesArray');
var obj = JSON.parse(list_location);
var coordsArray = obj;
var marker;
for (var i = 0, j = coordsArray.length; i < j; i++) {
marker = new google.maps.Marker({
position: new google.maps.LatLng( coordsArray.Lat, coordsArray.Lon ),
title: coordsArray.Engine,
map: Appery("googlemap_6").gmap
});
}
var onMarkerClick = function(){
alert("Marker click");
};
//Where - markers - is your marker.
google.maps.event.addListener(marker, 'click', onMarkerClick);
Please help
Thank you
Vinny