Add parcel overlay to raster tile map
Makes it easier to tell what parcel we're talking about.
This commit is contained in:
parent
313dacd956
commit
441e4d45b1
2 changed files with 29 additions and 4 deletions
|
|
@ -106,7 +106,7 @@ class MapProxiedArcgisTile extends HTMLElement {
|
|||
});
|
||||
});
|
||||
for (const on of this._preOns) {
|
||||
this._map.on(on.a, on.b);
|
||||
this._map.on(...on);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -134,11 +134,11 @@ class MapProxiedArcgisTile extends HTMLElement {
|
|||
jumpTo(args) {
|
||||
return this._map.jumpTo(args);
|
||||
}
|
||||
on(a, b) {
|
||||
on(...args) {
|
||||
if (this._map != null) {
|
||||
return this._map.on(a, b);
|
||||
return this._map.on(...args);
|
||||
} else {
|
||||
this._preOns.push({ a: a, b: b });
|
||||
this._preOns.push(args);
|
||||
}
|
||||
}
|
||||
once(a, b) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue