I have a js file formatted like this:
var database = [{
lat: 44.4405372,
lng: 11.4743532,
data: {
code: 231671,
dataora: '07/02/2019 - 18.30',
agente: 'Jhon DOe',
gif: 2
}
}, {
lat: 40.9171172,
lng: 14.7844072,
data: {
code: 269531,
dataora: '09/02/2010 - 18.30',
agente: 'Miss Miss',
gif: 1
}
},
and so on.
What I would like to obtain is a series of markers with:
- every marker's icon is the 'gif' value +'.gif' (in a folder i've already created all the gifs)
- if the user click che marker the infowindow shows a string composed by code + dataora + agente
I have tried a lot with gmap3 without success. Someone can point me to the right direction?
Thanks