I work on a map with leaflet, I want a certain level of zomme its declache a event this avenemet is to appear an image on the map
function initialisation() {
var mymap = L.map('mapid').setView([49.621522, 5.863455],13)// carte map et 13 c'est le zoom
var marker = L.marker([49.621522, 5.863455]).addTo(mymap).on('click', onClick);//déclaration de la varibale Marker pour tracer une place sur Map;
function onClick()
{scene(L, mymap, currentPoint);}
function scene(L, mymap, currentPoint) {
$.getJSON('data/emplacement.json', function(data){//data c'est la liste
for (let objet of data) { // une boucle parcour la liste des objets JSON
JSON picture contains some image I want a certain level of zoom his release the scene function
I did not know what I'm going to put a loop for the creation of layers