Merge pull request #2668 from lennartbecker/load-map-updates-immediately

Standalone: Load changes immediately after page load
This commit is contained in:
mikeprimm 2019-12-14 08:33:44 -06:00 committed by GitHub
commit 4e7448dd8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -375,6 +375,7 @@ DynMap.prototype = {
componentstoload--; componentstoload--;
if (componentstoload == 0) { if (componentstoload == 0) {
// Actually start updating once all components are loaded. // Actually start updating once all components are loaded.
me.update();
setTimeout(function() { me.update(); }, me.options.updaterate); setTimeout(function() { me.update(); }, me.options.updaterate);
} }
}); });