Add it to your app in one line
Choose a theme and a language and you get a style URL. Pass it to MapLibre GL JS 6.7 or newer. You don't need an API key or an account.
Embed a map with one script
Paste two lines into any web page: a plain HTML site, WordPress, React or Vue. The map below is the embed itself.
langLabel language: hi, bn, ta, te, mr and the other language codes listed below. Default hi.
themelight, dark, white, grayscale or black.
center, zoomStart position as longitude,latitude and a zoom level from 0 to 15.
marker, popupDrop pins at lng,lat. Separate several with ;. The popup opens when someone taps the first pin.
cooperativetrue needs Ctrl+scroll or two fingers to zoom, so the page still scrolls.
interactive, controlsfalse gives a still image or hides the zoom buttons.
Can't add scripts? Use an iframe
<iframe
src="https://maps.anthaathi.com/embed?lang=ta&theme=light¢er=80.27,13.08&zoom=11"
width="100%" height="420" style="border:0" loading="lazy">
</iframe>
From JavaScript
// after embed.js has loaded
const map = await AnthaathiMaps.create(document.getElementById("map"), {
lang: "te", theme: "dark", center: [78.4867, 17.385], zoom: 11,
});
map.anthaathi.setLanguage("hi"); // switch language later
// `map` is a normal MapLibre GL JS map: add layers, markers and events as usual
Every scheduled language of India
Place names appear in the language you choose, with the English name underneath. If OpenStreetMap doesn't have a name in that language yet, the label shows English. Select a language to see it on the map.
The map also comes in 37 other languages, including Arabic, Chinese, French, German, Japanese, Russian and Spanish. You can add missing names on openstreetmap.org with a name:ta, name:bn, … tag. They show up here after the next rebuild.
Build your own style
The vector tiles follow the Protomaps basemap layers, so any Protomaps style or the @protomaps/basemaps package works with them.
https://maps.anthaathi.com/planet/{z}/{x}/{y}.mvtTileJSON: /planet.json. Zoom 0–15, every countryhttps://maps.anthaathi.com/india/{z}/{x}/{y}.mvtTileJSON: /india.json. Names in all 22 scheduled languageshttps://maps.anthaathi.com/fonts/{fontstack}/{range}.pbfhttps://maps.anthaathi.com/sprites/v4/{theme}https://maps.anthaathi.com/fonts-ttf/NotoSansTamil-Regular.ttfNoto TTFs for MapLibre font-faces. Every style already includes them.With @protomaps/basemaps
import { layers, namedFlavor } from "@protomaps/basemaps";
const style = {
version: 8,
glyphs: "https://maps.anthaathi.com/fonts/{fontstack}/{range}.pbf",
sprite: "https://maps.anthaathi.com/sprites/v4/light",
sources: {
protomaps: { type: "vector", url: "https://maps.anthaathi.com/planet.json" },
},
layers: layers("protomaps", namedFlavor("light"), { lang: "hi" }),
};
Open data, served at the edge
Roads, buildings, rivers and places mapped by millions of volunteers. The tiles come from the daily Protomaps planet build.
One 140 GB PMTiles archive, served as tiles by a Worker and cached at the nearest Cloudflare location.
Conjuncts, matras and ligatures render correctly because MapLibre shapes the text with the actual Noto fonts.
Map data © OpenStreetMap contributors, ODbL. Basemap by Protomaps. Fonts: Noto, OFL. Keep the attribution visible on your map.