Hi all,
I have a problem with the meter and display in the popup.
When I do this:
for (i=0;i<position.length;i++)
{
marker[i]= L.marker([position[i].Latitude,position[i].Longitude]).addTo(map);
affichage[i] = (position[i].Latitude+' , '+position[i].Longitude);
marker[i].on('mouseover', function(e) {
popup = L.popup().setLatLng(e.latlng)
.setContent(
affichage[i].toString())
.openOn(map);});
}
Nothing appears but if I write the gross value of the case, like this, It works :for (i=0;i<position.length;i++)
{
marker[i]= L.marker([position[i].Latitude,position[i].Longitude]).addTo(map);
affichage[i] = (position[i].Latitude+' , '+position[i].Longitude);
marker[i].on('mouseover', function(e) {
popup = L.popup().setLatLng(e.latlng)
.setContent(
affichage[0].toString())
.openOn(map);});
}
Can you help me please ?:)
K.Tama