Disable preloading states to reduce traffic on start

This commit is contained in:
Norbert Renner 2022-06-01 16:53:23 +02:00
parent af1bfc224f
commit 198f65e5bc

View file

@ -74,9 +74,9 @@ BR.CircleGoArea = L.Control.extend({
this._loadCountries(); this._loadCountries();
// preload states in parallel, before clicked country is known, using browser language as indicator // preload states in parallel, before clicked country is known, using browser language as indicator
if (BR.Util.isCountry('DE')) { // if (BR.Util.isCountry('DE')) {
this._loadStates(); // this._loadStates();
} // }
map.on('routing:draw-start', function () { map.on('routing:draw-start', function () {
self.draw(false); self.draw(false);