OpenLayers Muted Basemap
✓ Published1🌍 Public
This example shows a full-screen OpenLayers map with a muted basemap rendered inside a React component. The map uses a Stamen `toner-lite` tile source, and a CSS `opacity` filter on the basemap layer reduces its visual contrast. The `Cartography` component initializes an `ol.Map` and `ol.View` in a `useEffect` hook, setting the target to a div reference and cleaning up the map on unmount by calling `map.setTarget(null)`.
AI-generated descriptionOpenLayers with React Starter code.
Additional feature: muted background.
MIT Licensed