Add bicycle libraries

This commit is contained in:
Pieter Vander Vennet 2021-01-05 02:59:29 +01:00
parent 85a6894c92
commit a782266a2f
7 changed files with 361 additions and 107 deletions

View file

@ -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