Get code to show an interactive map
map_setupGet ready-to-paste HTML/JavaScript for an interactive, zoomable PinSharing map in a web page (MapLibre GL JS vector map, Leaflet or OpenLayers raster map), or the raster tile URL template for any other library. Replace YOUR_KEY with a key restricted to the website. Needs no key and uses no quota; the map itself counts map tiles when viewed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | No | Map style: light (default), dark, white or grayscale | light |
| library | Yes | maplibre = vector map (sharpest); leaflet or openlayers = raster tiles; tile_url = just the XYZ URL template |