Prevent unnecessary tile loading for default base layer
by only setting it if no layer activated by hash URL
This commit is contained in:
parent
d60b1ad15f
commit
282edbbc01
5 changed files with 40 additions and 6 deletions
|
|
@ -141,7 +141,7 @@
|
|||
|
||||
if (!added) {
|
||||
// if we couldn't add layers (removed or invalid name), add the default one
|
||||
layersControl.activateFirstLayer();
|
||||
layersControl.activateDefaultBaseLayer();
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue