mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
Merge pull request #604 from amalhub/3.1.0-test
Cherry-pick: fix for leaflet tile not loading issues
This commit is contained in:
commit
bc864a86f6
@ -46,9 +46,10 @@ function loadLeafletMap() {
|
|||||||
this.closePopup();
|
this.closePopup();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
$("#map-error").hide();
|
$("#map-error").hide();
|
||||||
$("#device-location").show();
|
$("#device-location").show();
|
||||||
|
setTimeout(function(){ map.invalidateSize()}, 400);
|
||||||
|
|
||||||
} else if (location_long && location_lat) {
|
} else if (location_long && location_lat) {
|
||||||
|
|
||||||
map = L.map(container).setView([location_lat, location_long], zoomLevel);
|
map = L.map(container).setView([location_lat, location_long], zoomLevel);
|
||||||
@ -61,7 +62,9 @@ function loadLeafletMap() {
|
|||||||
m.on('mouseout', function (e) {
|
m.on('mouseout', function (e) {
|
||||||
this.closePopup();
|
this.closePopup();
|
||||||
});
|
});
|
||||||
|
$("#map-error").hide();
|
||||||
|
$("#device-location").show();
|
||||||
|
setTimeout(function(){ map.invalidateSize()}, 400);
|
||||||
} else {
|
} else {
|
||||||
$("#device-location").hide();
|
$("#device-location").hide();
|
||||||
$("#map-error").show();
|
$("#map-error").show();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user