Snippet builder
Paste a CSV, JSON, GeoJSON or a 0.2 config, and get a <maplace-map> to copy. It all stays in your browser.
A CSV's header row names lat and lng, and may name id, title, html, icon, zoom, group and tags.
02 Preview
Loading the map…
The map couldn't load.
Loading the map…
The map couldn't load.
These maps come from Google Maps and OpenFreeMap, which see your IP address. They stay off until you say so, once for the whole site. What loading the maps sends
The preview fetches no icons and shows popups as plain text.
03 Copy
Not carried over
The popups are used as written, scripts included: keep only HTML you trust.
The popups are written as plain text: this page wrote these locations as JSON, as not all of them could be a <maplace-location> with its popup whole (a polygon, a polyline, a hidden location or data can't), and JSON's html needs a sanitize of yours. One with no text has no popup.
Put your own key in api-key: how to get one.
Open the page from a web server; a local one is fine. Opened directly as a file, a MapLibre map can't load.
<script src="https://cdn.jsdelivr.net/npm/@maplacejs/maplace@1.2.0/dist/maplace-element.iife.js"
integrity="sha384-OgwZw1NQ78VKxQUXntJyiiRILF/Ck2chxPi2kbY+gNOcSqZIIsBVXI1BAPbqs6LV" crossorigin="anonymous"></script><script src="https://cdn.jsdelivr.net/npm/@maplacejs/maplace@1.2.0/dist/maplace-element-maplibre.iife.js"
integrity="sha384-NTx1K+93ZQC7ezi/smTAvSpiQCrdWid6IfMLQuIS6oT/63JARr9b+gD1devKzZqV" crossorigin="anonymous"></script>