{"id":25348448,"url":"https://github.com/yuehaowang/irmap","last_synced_at":"2026-02-27T15:11:32.441Z","repository":{"id":77827304,"uuid":"99557874","full_name":"yuehaowang/irmap","owner":"yuehaowang","description":"Ideal Reality Map, a tool for generating whereabouts map of high school graduates","archived":false,"fork":false,"pushed_at":"2021-07-31T06:37:17.000Z","size":912,"stargazers_count":10,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-10-26T00:41:47.325Z","etag":null,"topics":["baidumap","bootstrap","javascript"],"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/yuehaowang.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,"governance":null}},"created_at":"2017-08-07T08:58:37.000Z","updated_at":"2023-07-22T05:06:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"f10133be-0c0a-49f6-bc10-dcb4d151794e","html_url":"https://github.com/yuehaowang/irmap","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuehaowang%2Firmap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuehaowang%2Firmap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuehaowang%2Firmap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuehaowang%2Firmap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yuehaowang","download_url":"https://codeload.github.com/yuehaowang/irmap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238861539,"owners_count":19542973,"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","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":["baidumap","bootstrap","javascript"],"created_at":"2025-02-14T15:22:06.757Z","updated_at":"2025-10-17T06:28:39.228Z","avatar_url":"https://github.com/yuehaowang.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# irmap\n\n## 简介\n\nIRMap (Ideal Reality Map) 是一个用来做高中毕业去向的工具。基于Bootstrap和百度地图。兼容各大主流浏览器，iOS，Android，以及QQ和微信等平台。\n\n以下是示例展示：\n\n- ### 6map\n\n![6map](screenshots/6map.png)\n\n在线地址：[http://yuehaolab.com/apps/6map/](http://yuehaolab.com/apps/6map/)\n\n\n## 如何使用？\n\n你只用在index.html中添加你的百度地图AK码以及更改config.js文件里的内容就能完成整个地图的生成。\n\n### 获取百度地图开放平台AK码\n\n关于如何获取百度地图AK码，其实很简单，直接去[百度地图开放平台](http://lbsyun.baidu.com/)里点击“申请密钥”，然后填写一个申请表。申请表比照下图填写，填写之后提交就能获取AK码了：\n\n![AK申请表](screenshots/baidu_ak_form.png)\n\n用文本编辑器打开index.html，将这个密钥填写在index.html的下图所示位置并保存文件：\n\n```html\n\u003cscript type=\"text/javascript\" src=\"http://api.map.baidu.com/api?v=2.0\u0026ak=亲，密钥填这里\"\u003e\u003c/script\u003e\n```\n\n注意：如果你的发布平台支持HTTPS协议，请将上面链接中\"http\"部分改为\"https\"。\n\n### 更改config.js\n\n之后更改config.js。示例如下：\n\n```javascript\nvar MAP_STYLE = \"hardedge\";\n\nvar DATA = {\n\t\"城市1\" : {\n\t\t\"大学A\" : [\"Peter\", \"Mary\"],\n\t\t\"大学B\" : [\"Tony\", \"Pepper\"]\n\t},\n\n\t\"城市2\" : {\n\t\t\"大学C\" : [\"Stephen\", \"Klay\", \"Kevin\"],\n\t\t\"大学D\" : [\"Lebron\"]\n\t}\n};\n\nvar SPEC_POS = {\n\t\"大学C\" : [121.597479, 31.185356]\n};\n\nvar MAP_TITLE = \"毕业去向\";\n\nvar ABOUT = {\n\t\"作者\" : [\"Yuehao\"],\n\t\"框架\" : [\"irmap\", \"Bootstrap\", \"百度地图\"]\n};\n```\n\n这个文件会被自动引进项目中，所以不要更改这个文件的名字和位置，其中定义的变量将会在项目中被使用。以下介绍其中定义的变量：\n\n- MAP_STYLE 地图样式，参考[样式列表](http://developer.baidu.com/map/custom/list.htm)。\n- DATA 学校数据，[JSON](http://www.json.org/json-zh.html)格式。格式参考上面的示例。地图上的地标根据这个变量里的内容自动定位。\n- SPEC_POS 一些学校（比如国外的学校）的位置百度地图无法通过搜索定位，或者定位有误，更改这个属性可以设置学校的经纬度从而辅助定位。（百度地图开放平台提供了一个拾取经纬度的工具，见[百度地图坐标拾取系统](http://api.map.baidu.com/lbsapi/getpoint/index.html)）\n- MAP_TITLE 地图标题。\n- ABOUT 关于界面中的内容。格式：`{\"标题\" : [\"第一行内容\", \"第二行内容\"]}`。\n\n更改完成后，保存config.js文件，用浏览器打开index.html就能看到结果。\n\n## 发布地图\n\n推荐使用Github Pages发布你所制作完成的地图。你也可以使用自己的服务器，并以静态页面的形式发布地图。\n\n## 开源协议\n\nGPL协议（协议详情见：[维基百科](https://en.wikipedia.org/wiki/GNU_General_Public_License)）\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuehaowang%2Firmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuehaowang%2Firmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuehaowang%2Firmap/lists"}