Revize ac6504c1
Přidáno uživatelem Ondřej Fibich před asi 5 roky(ů)
application/views/js/address_points_show.php | ||
---|---|---|
markerLayer.enable();
|
||
};
|
||
|
||
var $map = $('#ap_gmap');
|
||
mapycz_addr('ap_gmap', $map.data('gpsx'), $map.data('gpsy'));
|
||
(function map_async_loader() {
|
||
if ('Loader' in window) {
|
||
Loader.async = true;
|
||
Loader.load(null, null, function () {
|
||
var $map = $('#ap_gmap');
|
||
mapycz_addr('ap_gmap', $map.data('gpsx'), $map.data('gpsy'));
|
||
});
|
||
} else {
|
||
setTimeout(map_async_loader, 1000);
|
||
}
|
||
})();
|
||
});
|
||
|
Také k dispozici: Unified diff
Fixes #1121: Fix slow loading of mapy.cz if Loader not fetched (e.g. slow connection or offline). The mapy.cz API is loaded asynchronously now. The map loading is waiting in a loop until it is loaded.