186,6 → 186,7 |
}); |
marqueur.on('click', surClickMarqueur); |
coucheStructures.addLayer(marqueur); |
|
} |
|
function surClickMarqueur(event) { |
195,12 → 196,11 |
for (var index = 0; index < structures.length; index ++) { |
if (structures[index].latitude == latlng.lat && structures[index].longitude == latlng.lng) { |
collections = collections.concat(structures[index].collections); |
if (structure == null) { |
structure = structures[index]; |
} |
structure = structures[index]; |
afficherCollections(structure, collections); |
break; |
} |
} |
afficherCollections(structure, collections); |
} |
|
function afficherCollections(structure, collections) { |