@uzmaps/cartography
v0.1.0
Published
UzMap cartography — the MapLibre style, design tokens and category iconography behind uzmaps.
Maintainers
Readme
@uzmaps/cartography
The UzMap cartography — the MapLibre style, design tokens and category iconography behind uzmaps, with no runtime dependencies.
Use this when you want the UzMap look but intend to drive MapLibre yourself. If you want the whole interactive
map, use @uzmaps/engine instead.
npm install @uzmaps/cartographyimport { buildStyle, themes } from '@uzmaps/cartography';
import maplibregl from 'maplibre-gl';
const map = new maplibregl.Map({
container: 'map',
style: buildStyle({ serverUrl: 'https://uzmaps.ndc.uz', theme: 'light', language: 'uz' }),
});buildStyle returns a plain MapLibre style object, so you can modify layers before handing it over.
Also exported: themes (the light and dark token sets), anchors (stable layer ids to insert your own layers
against, so custom layers land in the right place in the draw order), and the POI category-to-icon mapping.
Licence
MIT. Map data © OpenStreetMap contributors (ODbL).
