{"id":24927089,"url":"https://github.com/divedylan/config-cities-map","last_synced_at":"2025-07-21T12:04:20.450Z","repository":{"id":64405954,"uuid":"274141945","full_name":"diveDylan/config-cities-map","owner":"diveDylan","description":"diy your chines cities map geoJSON by config😍 build with echart， for geojson pl visite https://github.com/echarts-maps","archived":false,"fork":false,"pushed_at":"2022-12-13T03:23:03.000Z","size":3792,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T12:33:33.327Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/diveDylan.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-22T13:17:26.000Z","updated_at":"2023-03-07T07:14:06.000Z","dependencies_parsed_at":"2023-01-28T06:00:51.255Z","dependency_job_id":null,"html_url":"https://github.com/diveDylan/config-cities-map","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/diveDylan/config-cities-map","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diveDylan%2Fconfig-cities-map","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diveDylan%2Fconfig-cities-map/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diveDylan%2Fconfig-cities-map/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diveDylan%2Fconfig-cities-map/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diveDylan","download_url":"https://codeload.github.com/diveDylan/config-cities-map/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diveDylan%2Fconfig-cities-map/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266296812,"owners_count":23907014,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-02T12:55:38.251Z","updated_at":"2025-07-21T12:04:20.423Z","avatar_url":"https://github.com/diveDylan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### why\n根据城市组合配置组合多个城市成一个地图\u003cbr/\u003e\nwhen your cities map data are different from chinese province map. we write a node tool to format the xlsx file to a data map, than transform the chinese cites map data to custom map data\n\n### usage\n\n```bash\n  npm install\n  ## or npm i \n  node app.js\n  ## or npm run start \n```\n### examples\n```js\n const configs = {\n  // no need format\n  \"深圳\": [ \"深圳\", \"珠海\",\"香港\", \"澳门\", \"广州\" ],\n};\n\ngetConfigCitesJSON(configs)\n\n```\nthe map data looks like this in echarts\n\n\u003cimg src=\"./example.png\" width=\"400\"\u003e\u003cbr/\u003e\n\n### methods\n```js\n/**\n * @description 从xlxs文件中生成market的map类型数据\n * @param {string} fileName input filename xlsx\n * @param {string} outputFile output map data js file or other file you like\n */\nfunction makeConfig(fileName, outputFile) {}\n/**\n * make city feature list from configs\n * @param {Object} marketsData \n */\nfunction makeConfigMapData(configs) {\n\n}\n/**\n * @description 完整的中国自定义区块地图\n * @param {Object} configs 配置\n */\nfunction combineConfigsMapJSON (configs) {}\n/**\n * 单个地图整合块制作\n * make cities map geoJson from cities config\n * @param {Array} citiesData cities config\n */\nfunction getConfigCitesJSON(citiesData) {\n}\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivedylan%2Fconfig-cities-map","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdivedylan%2Fconfig-cities-map","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivedylan%2Fconfig-cities-map/lists"}