# aiceking/ChinaMapView

自定义View，可缩放、可平移、可点击的中国地图，有中国地图的全部省份，具备每个省份的点击接口

Repository: https://github.com/aiceking/ChinaMapView
Canonical: https://ross.abutalabs.com/products/chinamapview
Language: Java
License Family: other
Topics: map, android-view, china-map, android
Last push: 2024-06-20T07:54:01+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3327, "days_push": 804, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1260, forks 76 (observed 2026-08-28T04:04:09.993677+00:00)

## What it is
An Android custom View that renders an interactive map of China with all provinces, supporting drag, pinch-zoom, and per-province click callbacks. It is built with Path drawing, Matrix transforms, and Region hit-testing, and exposes APIs for styling provinces and handling touch conflicts.

## Use cases
- add a clickable china map to an android app
- zoomable pannable map of chinese provinces in android
- handle province selection clicks on a china map view
- color individual provinces on a china map
- show province names on an android china map
- resolve swipe conflicts with SwipeRefreshLayout around a map view

## When to choose
- you need a lightweight native Android view showing China's provinces with click interaction
- you want drag/zoom gestures with boundary handling out of the box
- you need per-province styling and selection callbacks without a full mapping SDK

## When to avoid
- you need real geographic data, tiles, or satellite imagery
- your app targets iOS or web platforms
- you need world maps or maps of other countries
- you require an actively maintained project with a clear license

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, graphics
- domain: android-tools, mobile-development, cross-platform
- platform: -
- tags: china-map, custom-view, android-view, interactive-map, provinces, gesture-zoom, pan-and-zoom, click-events, maps, android

## Member repositories
- aiceking/ChinaMapView (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:09.993677+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T05:04:22.889363+00:00, confidence not recorded.
  - readme: https://github.com/aiceking/ChinaMapView (fetched 2026-08-28T04:04:09.993677+00:00, sha aa7847503092)
- Data as of 2026-08-30T08:39:29.467469+00:00.
