Skip to content

OL: WMS tile layer support for map style switcher#378

Merged
dannyleech merged 1 commit into
DEFRA:mainfrom
jsmith-informed:feature/ol-wms-tile
Jun 29, 2026
Merged

OL: WMS tile layer support for map style switcher#378
dannyleech merged 1 commit into
DEFRA:mainfrom
jsmith-informed:feature/ol-wms-tile

Conversation

@jsmith-informed

Copy link
Copy Markdown
Contributor

Adds wms as a map style type for the OpenLayers provider, required so we can add the APGB aerial base map.

e.g

{
  id: 'apgb-aerial-125mm',
  label: 'Aerial 12.5cm',
  type: 'wms',
  url: 'https://www.getmapping.com/GmWMS/{YOUR-UUID}/ApgbBng.wmsx'
  params: { LAYERS: 'APGB_Latest_UK_125mm', BGCOLOR: '0x1E3448', TRANSPARENT: false },
}

Also added a check on the type to ensure its valid to alert to config mistakes.

Added to the demos and tested there:

Screenshot 2026-06-26 at 10 31 57 Screenshot 2026-06-26 at 14 34 00

@dannyleech dannyleech merged commit 7d8643e into DEFRA:main Jun 29, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants