Skip to content

docs: show MapLibre GL JS with the NZTM2000Quad vector tiles - #3672

Open
birkskyum wants to merge 1 commit into
linz:masterfrom
birkskyum:maplibre-nztm2000quad
Open

birkskyum wants to merge 1 commit into
linz:masterfrom
birkskyum:maplibre-nztm2000quad

Conversation

@birkskyum

@birkskyum birkskyum commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

Right now the MapLibre example in the vector tile docs is Web Mercator only, and the XYZ projection page says NZTM2000Quad isn't supported by many third party tools. MapLibre GL JS 6.15 added addProjection, which renders tiles in other grids.

Modifications

Adds an NZTM2000 example below the existing MapLibre one, using the style with tileMatrix=NZTM2000Quad, and a note on the XYZ projection page pointing to it.

Left - Web Mercator, zoom 10 / Right - NZTM2000, zoom 8

linz-nztm-mercator-nztm

Verification

Built the docs with ghcr.io/linz/basemaps-mkdocs:v1, with no new warnings, and checked the example in Chrome. The NZTM2000Quad style, tiles and fonts load, and zoom 8 shows about the same area around Auckland as zoom 10 in the Web Mercator example.

@birkskyum
birkskyum requested a review from a team as a code owner October 28, 2026 00:39

This branch has not been deployed

No deployments
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.

1 participant