Skip to content

PB-1383: layers module #1258

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 10 commits into
base: develop
Choose a base branch
from
Draft

PB-1383: layers module #1258

wants to merge 10 commits into from

Conversation

schtibe
Copy link
Contributor

@schtibe schtibe commented Mar 10, 2025

Implementing the layers in a new module called @geoadmin/layers.

Switching from having classes (which aren't ideal in the store) to simple interfaces that determine the structure of the various layers. Since this takes away the constructors, I added utility functions to construct the layers, so that we don't have to always specify every bit of information.
I also moved the capability parsers of wmts and wms to the new module. Maybe some other parsers could follow too, I don't know that yet. There's some coupling to defaults which are in mapviewer, we need to figure that out first.

The advantage of this change is clearly not very impactful yet. We'll have to switch the Vue components to TS to leverage the interfaces, for instance. I rather think as of now this module is just a step in the right direction. Maybe we'll also refactor the layers structure, I heard ideas about simplifying some stuff, for instance to merge GeoAdminWM(T)S with ExternalWM(T)s. Maybe we could, in the future, organize the layers around traits, like "FileBased", "wmtsBased" etc.

Maybe we now have a starting point to consider what else should be done around the layers of the mapviewer.

Test link

Copy link

cypress bot commented Mar 11, 2025

@schtibe schtibe force-pushed the feat-pb-1383-layers-module branch 4 times, most recently from e4560f0 to 09ef230 Compare March 14, 2025 13:11
@schtibe schtibe force-pushed the feat-pb-1383-layers-module branch 9 times, most recently from 234bb28 to 6860cdf Compare March 28, 2025 13:20
@schtibe schtibe force-pushed the feat-pb-1383-layers-module branch 15 times, most recently from 656f178 to fd3cc57 Compare April 4, 2025 11:34
@schtibe schtibe force-pushed the feat-pb-1383-layers-module branch 4 times, most recently from c215f85 to 61ced2e Compare May 6, 2025 07:31
@pakb pakb force-pushed the feat-pb-1383-layers-module branch from 61ced2e to 817606a Compare May 12, 2025 14:38
@pakb pakb changed the title Feat pb 1383 layers module PB-1383: layers module May 12, 2025
@pakb pakb force-pushed the feat-pb-1383-layers-module branch 6 times, most recently from 29d4f16 to ebc821c Compare May 16, 2025 09:45
@pakb pakb force-pushed the feat-pb-1383-layers-module branch 4 times, most recently from 3631390 to da2ac11 Compare May 27, 2025 14:39
@pakb pakb force-pushed the feat-pb-1383-layers-module branch from da2ac11 to 88aa27f Compare June 10, 2025 14:13
@pakb pakb force-pushed the feat-pb-1383-layers-module branch from 88aa27f to debf6d0 Compare June 30, 2025 13:58
@pakb pakb force-pushed the feat-pb-1383-layers-module branch from debf6d0 to f693119 Compare August 6, 2025 07:51
schtibe and others added 10 commits August 6, 2025 10:00
- Rework the WMS getCap parsing with TypeScript
- Migrates to `unplugin-dts` for declaration generation.
- Adding some rules to the TS config to improve intelisense performance while developing
- Enforces stricter TypeScript rules with `@typescript-eslint/consistent-type-exports` and `@typescript-eslint/no-import-type-side-effects`.
- migrating  marker style to TypeScript
@pakb pakb force-pushed the feat-pb-1383-layers-module branch from f693119 to a723d83 Compare August 19, 2025 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants