OpenLayers Dark Basemap High DPI
✓ Published1🌍 Public
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 descriptionOpenLayers with React Starter code.
Additional features:
- muted background
- High DPI (based on XYZ Retina Tiles example).
MIT Licensed