Chargement en cours javascript/leaflet.gis.js +18 −15 Numéro de ligne d'origine Numéro de ligne de diff Ligne de diff Chargement en cours @@ -208,6 +208,8 @@ L.Map.Gis = L.Map.extend({ var bounds = new L.LatLngBounds(); bounds.extend(centerOrBounds); panonly = panonly === undefined ? false : panonly; // pas la peine d'aller plus loin si les bounds sont invalides (json vide par exemple) if (bounds.isValid()) { // avoid infinite zoom if bounds focus on a point if (bounds._northEast.lat == bounds._southWest.lat && bounds._northEast.lng == bounds._southWest.lng) { var singlePoint = true; Chargement en cours @@ -225,6 +227,7 @@ L.Map.Gis = L.Map.extend({ if (options.zoom && singlePoint) { map.setZoom(options.zoom); } } }, // API parseGeoJson Chargement en cours Chargement en cours
javascript/leaflet.gis.js +18 −15 Numéro de ligne d'origine Numéro de ligne de diff Ligne de diff Chargement en cours @@ -208,6 +208,8 @@ L.Map.Gis = L.Map.extend({ var bounds = new L.LatLngBounds(); bounds.extend(centerOrBounds); panonly = panonly === undefined ? false : panonly; // pas la peine d'aller plus loin si les bounds sont invalides (json vide par exemple) if (bounds.isValid()) { // avoid infinite zoom if bounds focus on a point if (bounds._northEast.lat == bounds._southWest.lat && bounds._northEast.lng == bounds._southWest.lng) { var singlePoint = true; Chargement en cours @@ -225,6 +227,7 @@ L.Map.Gis = L.Map.extend({ if (options.zoom && singlePoint) { map.setZoom(options.zoom); } } }, // API parseGeoJson Chargement en cours