componentDidMount() { super.componentDidMount(); if (this.props.selected) { this.leafletElement.openPopup(); } this.leafletElement.on("click", () => this.props.onSelectStein(this.props.id) ); }
componentDidMount() { super.componentDidMount(); if (this.props.selected) { this.leafletElement.openPopup(); } this.leafletElement.on("click", () => this.props.onSelectStein(this.props.id) ); }