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) {
|
L.bind(function (obj, index, array) {
|
||||||
if (obj) {
|
if (obj) {
|
||||||
layersControl.activateLayer(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) {
|
if (obj && !obj.overlay) {
|
||||||
added = true;
|
added = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue