Organization html

From Redazione
Jump to navigation Jump to search
Line 490: Line 490:
 
var mapCenter = [lat,lon];
 
var mapCenter = [lat,lon];
  
var map = L.map('map_container', {center : mapCenter, zoom : 7});
+
var map = L.map('map_container', {center : mapCenter, zoom : 8});
  
 
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
 
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
Line 537: Line 537:
 
if(obj[i].name == selected_country) {
 
if(obj[i].name == selected_country) {
 
//drawMap(obj[i].lat, obj[i].long);
 
//drawMap(obj[i].lat, obj[i].long);
map.setView(new L.LatLng(obj[i].lat, obj[i].long), 7);
+
map.setView(new L.LatLng(obj[i].lat, obj[i].long), 8);
 
break;
 
break;
 
}
 
}

Revision as of 09:55, 7 March 2020

Zoom and move the map to the precise location of your organization to pick its coordinates.