Skip to main content

Map

An interactive map with multiple engines and tile styles. Tabs: Content, Styling, Animations, Advanced.

๐Ÿ’ก Web dev tip: give an embedded map a title

An embedded map is an <iframe>, and every iframe needs a title (e.g. "Map to our office") so screen-reader users know what it is before diving in. Embeds are heavy, too โ€” loading the map only when it scrolls into view keeps the page fast. MDN: the iframe element

Live demoโ€‹

โ–ถ See the Map live on the demos site โ€” an interactive example you can click through.

Map Engineโ€‹

EngineNotes
OpenStreetMapFree, no API key
Google MapsRequires an API key

Map Style (OpenStreetMap)โ€‹

Eight tile families โ€” some need a free API key:

OpenStreetMap โ€” Standard ยท CARTO (Light / Dark / Voyager) ยท OpenTopoMap โ€” Terrain ยท CyclOSM โ€” Cycling ยท Humanitarian (HOT) ยท Esri โ€” World Imagery (Satellite) ยท Stadia / Stamen (API key) ยท Thunderforest (API key) ยท MapTiler (API key)

Sub-styles:

  • CARTO โ€” Positron (Light), Dark Matter (Dark), Voyager
  • Stadia / Stamen โ€” Alidade Smooth, Alidade Smooth Dark, Outdoors, Stamen Toner, Stamen Terrain, Stamen Watercolor
  • Thunderforest โ€” OpenCycleMap, Transport, Landscape, Outdoors
  • MapTiler โ€” Streets, Satellite, Outdoor / Topo

API-key fields appear for Stadia, Thunderforest, MapTiler and Google as needed.

Map Type (Google)โ€‹

Roadmap, Terrain, Satellite, Hybrid.

Otherโ€‹

Population Method, Map Height, Disable zoom on scroll, Background Color, Margin & Padding.

Screenshots โ€” map styles

Capture a few representative tile styles: map-osm-standard, map-carto-dark, map-esri-satellite, map-google-roadmap.

Contentโ€‹

Map options panel โ€” Content tab

Stylingโ€‹

Map options panel โ€” Styling tab Map options panel โ€” Styling tab