Reference
FAQ¶
Does kharita replace Lonboard? No. It writes Lonboard layers and a styled basemap for you; kh.layer() gives you the native layers.
Do I need an API key? No. Basemaps come from OpenFreeMap, elevation from the Mapzen tiles on AWS Open Data, and imagery from EOX's Sentinel-2 cloudless, all keyless.
Can I use my own colours? Yes: hex in brackets, ramp-[...] stops, kh.palette, colors= for categories, and kh.theme for basemaps.
Can I move the legend and title? Yes, to eight places on the map or above and below it, with any background, type and shape. See Card styles.
Why did my quantile map get fewer classes? Many equal values leave too few distinct breaks; kharita warns and uses the classes it can.
Can I make a static PNG? Not yet; it is planned for v0.2. For now, export HTML and take a screenshot, or see tools/make_screenshots.py.
Are Arabic labels supported? Labels show; check that the letters join and read right to left on your map. Loading MapLibre's right-to-left text plugin, so Arabic always shapes correctly, is planned for v0.2.
Does it work in Colab? Yes: !pip install "kharita @ git+https://github.com/MuniebA/kharita", then use it as in any notebook.