Documentation
¶
Overview ¶
Package maps registers a dynamic GeoJSON server for Apache ECharts maps. Blank-import this package to make every supported region available to chart widgets:
import _ "github.com/microbus-io/bespa/chart/maps"
Supported URL patterns under /bespa/maps/:
world.json — the full world country dataset us.json — the US states dataset (50 + DC + PR) us-mainland.json — the US states minus Alaska, Hawaii, and territories us-<state>.json — a single US state by two-letter postal abbrev (us-ca, us-tx, …) ca.json — Canada with provinces and territories au.json — Australia with states and territories it.json — Italy with regions de.json — Germany with states (Länder) jp.json — Japan with prefectures cn.json — China with provinces in.json — India with states and union territories <country>.json — for any other code, a single-country outline filtered from world
Filtered responses are computed on first request and memoized. See ATTRIBUTIONS.md at the repository root for dataset sources and licenses.
Click to show internal directories.
Click to hide internal directories.