maps

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL