open-pioneer / trails-openlayers-base-packages

Common OpenLayers packages for the Open Pioneer Trails client framework.
Apache License 2.0
8 stars 6 forks source link

[Basemap-switcher] Use a image based basemap switcher #362

Open artmarks opened 2 weeks ago

artmarks commented 2 weeks ago

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 :)

changeset-bot[bot] commented 2 weeks ago

🦋 Changeset detected

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

arnevogt commented 1 week ago

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

[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