var tabCoord = [ ['Likasi', -10.981389999389648, 26.73332977294922, 1, 'Likasi'],['Saint-Geoire-en-Valdaine', 45.45698928833008, 5.634160041809082, 1, 'Saint-Geoire-en-Valdaine'],['Saint-Jorioz', 45.83295822143555, 6.165030002593994, 1, 'Saint-Jorioz'],]; //var tabCoord=[[46.079722, 6.401389],[45,6],[47.466702,0.7],[43.787222,-1.403056],[46.53972,2.43028]] var map = L.map('themap', { minZoom: 2 }); var osmUrl='http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'; var osmAttrib='Map data OpenStreetMap contributors'; var osm = new L.TileLayer(osmUrl, {attribution: osmAttrib}); map.setView([47.0, 3.0], 0); map.addLayer(osm); for (i=0;i