Open artmarks opened 2 weeks ago
Latest commit: 7268658311e2972933c099120acdbea4334e422a
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
@artmarks
Thanks for creating this PR.
I just had a look on your updates. Generally, I think this is quite nice and should be part of the base packages. In my opinion there are a few points that can be improved before we merge it:
useBasemap
) and the actual logic can be refactored and moved to a new, separate filemap?.layers.activateBaseLayer(layer.id)
and save the current selection in AppUI.tsx
syncWithMapModel
could be introduced in the properties[0] https://github.com/open-pioneer/trails-openlayers-base-packages/blob/main/src/samples/showcase/showcase-app/MapConfigProviderImpl.ts#L110
[1] https://github.com/open-pioneer/trails-openlayers-base-packages/blob/main/src/samples/showcase/showcase-app/CustomLegendItems.tsx
See #361. Here is an example to show a image basemap switcher. I adjusted the
test-basemap-switcher
app to show the difference. Feedback and adjustments are welcome :)