I want to use action "addMarkers" with address as input parameter instead of lat and lng. But it is not working.
I have changed your example code, markers.html as shown below. but it is not working.
$(function()
{
var markerData = [
{ address: '4829 N O Connor Rd, Irving TX 75062, USA', data: 'Lascolnas !' },
{ address: '620 W Division St, Arlington TX 76010, USA', data: 'Arlington PD!' },
{ address: '1519 Pebbelcreel dr, Coppell TX 75019, USA', data: 'Coppell !' }
]
$('#test1')
.gmap3(
{ action: 'init',
options: {
center: [46.578498, 2.457275],
zoom: 5
}
},
{ action: 'addMarkers',
markers: markerData,
marker: {
options: {
draggable: false
},
events: {
mouseover: function(marker, event, data) {
$(this).gmap3({ action: 'addinfowindow', anchor: marker, options: { content: data} });
},
mouseout: function() {
var infowindow = $(this).gmap3({ action: 'get', name: 'infowindow' });
if (infowindow) {
infowindow.close();
}
}
}
}
}
);
});