Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
china-echarts-map
Advanced tools
只存在全国和省份(省级城市)的地图
获取全国地图
const echarts = require('echarts')
const Map = require('china-echarts-map')
const areaJSON = Map.getAreaJSON()
获取省份地图
const echarts = require('echarts')
const Map = require('china-echarts-map')
// 获取东莞所在省份的地图
const code = Map.getCodeByName('东莞', 'city')
// 或 Map.getCodeByName('广东') // 获取广东省地图
const province = Map.getProvince(code)
const areaJSON = Map.getAreaJSON({type: 'province', map: province.map})
echarts.registerMap(province.map, areaJSON)
// 获取省市信息
getMapJSON ()
// 获取地图json, type的值为country或者province
getAreaJSON(area = {type: 'country', map: 'china'})
// 获取省份
getProvince(code)
// 获取城市
getCity(code)
// 通过中文名获取code,type的值为province或者city
getCodeByName(name = '北京', type = 'province')
// 通过拼音获取code,type的值为province或者city
getCodeByPy (pinyin = 'beijing', type = 'province')
FAQs
The npm package china-echarts-map receives a total of 5 weekly downloads. As such, china-echarts-map popularity was classified as not popular.
We found that china-echarts-map demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.