Skip to main content
100%

OpenLayers Dark Basemap High DPI

✓ Published1🌍 Public
CCurran Kelleher
Last edited Aug 29, 2020
Created on Aug 29, 2020

This example demonstrates an interactive world map using OpenLayers with a React frontend, featuring a dark, low-contrast basemap ideal for overlaying data. It uses an XYZ tile source with Stamen toner-lite tiles served at 2x resolution to support high-DPI displays. The map’s styling applies a CSS filter (`invert(1) opacity(0.3)`) to the tile layer to achieve the muted dark appearance. State management tracks the map view, and the component logs zoom and center coordinates on every moveend event.

AI-generated description

OpenLayers with React Starter code.

Additional features:

MIT Licensed

Similar vizzes