forked from MapComplete/MapComplete
Add bicycle libraries
This commit is contained in:
parent
85a6894c92
commit
a782266a2f
7 changed files with 361 additions and 107 deletions
|
@ -116,6 +116,9 @@ export default class ShowDataLayer {
|
|||
const tags = State.state.allElements.getEventSourceFor(feature);
|
||||
const uiElement: LazyElement = new LazyElement(() => new FeatureInfoBox(tags, layer));
|
||||
popup.setContent(uiElement.Render());
|
||||
popup.on('popupclose', () => {
|
||||
State.state.selectedElement.setData(undefined);
|
||||
});
|
||||
leafletLayer.bindPopup(popup);
|
||||
// We first render the UIelement (which'll still need an update later on...)
|
||||
// But at least it'll be visible already
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue