Skip to content

OL: Use default renderMode in VectorTileLayer#279

Merged
dannyleech merged 1 commit into
DEFRA:mainfrom
jsmith-informed:feature/ol-render-mode
May 14, 2026
Merged

OL: Use default renderMode in VectorTileLayer#279
dannyleech merged 1 commit into
DEFRA:mainfrom
jsmith-informed:feature/ol-render-mode

Conversation

@jsmith-informed
Copy link
Copy Markdown
Contributor

Using 'vector' was causing rendering issues with misaligned tiles at various zoom levels. Removing the prop and using the default 'hybrid' resolves this.

Looks like a base map isn't suitable to be rendered in vector mode, the docs mention:

'vector': Everything is rendered as vectors and the original render order is maintained. Use this mode for improved performance and visual epxerience on vector tile layers with not too many rendered features (e.g. for highlighting a subset of features of another layer with the same source).

You should be able to reproduce it scrolling in and out to zoom, e.g the screenshots are from around here:
gep.html?map:center=474648.11,409618.08&map:zoom=20

renderMode: 'vector'
Screenshot 2026-05-14 at 09 18 02
Screenshot 2026-05-14 at 08 16 17

renderMode: 'hybrid'
Screenshot 2026-05-14 at 09 18 18

Using 'vector' was causing rendering issues with misaligned tiles at
various zoom levels. Removing the prop and using the default 'hybrid'
resolves this.
@dannyleech dannyleech merged commit b5a286a into DEFRA:main May 14, 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