Fix overpass layer not selected on hash init
This commit is contained in:
parent
127f8e9e5b
commit
6a2da2064c
1 changed files with 5 additions and 0 deletions
|
|
@ -129,6 +129,11 @@
|
|||
L.bind(function (obj, index, array) {
|
||||
if (obj) {
|
||||
layersControl.activateLayer(obj);
|
||||
if (obj.layer instanceof OverpassLayer) {
|
||||
// hack to select overlay (mark checked) in the layers control
|
||||
// (OverpassLayer._layerAdd does not fire 'add' event)
|
||||
layersControl._update();
|
||||
}
|
||||
if (obj && !obj.overlay) {
|
||||
added = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue