Fixing android location issue

revert-dabc3590
kamidu 8 years ago
parent facadb13b2
commit 9d733d6cc1

@ -28,7 +28,7 @@ function loadLeafletMap() {
zoomLevel = 13,
tileSet = "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
attribution = "&copy; <a href='https://openstreetmap.org/copyright'>OpenStreetMap</a> contributors";
if (locations) {
if (locations && locations.locations.length > 0) {
var locationSets = locations.locations;
map = L.map(container).setView([locationSets[0].lat, locationSets[0].lng], zoomLevel);

Loading…
Cancel
Save