inowas / frontend-app

INOWAS-DSS on Create React App
2 stars 4 forks source link

Implement map component #413

Closed Roschl closed 1 year ago

Roschl commented 3 years ago

The idea is to have one general map component for the whole app. If a map is added to a component, it can be passed an options object, which defines which layers are visible/editable and which are not. For this reason, a custom edit control had been implemented in this PR.

Roschl commented 2 years ago

screenshot

Looks nice so far but has too many flaws. Problems to be fixed:

I opened a new repository for the custom layer control: https://github.com/Roschl/react-leaflet-custom-layer-control-ts

Roschl commented 2 years ago

#4cfb547 also fixed the issue with onClick triggering multiple times