Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

plutoghost/map

Repository files navigation

路书

骑行路线规划应用

一个基于 高德地图API 制作的地图 web 应用,可以分享路线、查看 gpx 路径、地图信息点分享、各市区县布局等。

路线分享
http://kylebing.cn/tools/map/#/route/route-line
Screenshot 2024年01月23日 at 17 45 28

gpx 路径 展示
http://kylebing.cn/tools/map/#/gpx/gpx-viewer
GPX

gpx 3D 路径展示
http://kylebing.cn/tools/map/#/gpx/gpx-viewer-3D
2024年05月06日 13-52-05 2024年05月06日 13_55_08

数据点展示
http://kylebing.cn/tools/map/#/pointer/pointer-viewer
Screenshot 2024年01月23日 at 17 39 57

范围标记
http://kylebing.cn/tools/map/#/tool/circle
Screenshot 2024年01月23日 at 17 40 29

市内区县展示
http://kylebing.cn/tools/map/#/tool/district-info
Screenshot 2024年01月23日 at 17 40 42


开发

一、使用

修改 /src/mapConfig.js 中的高德地图开发 key,获取地址: https://console.amap.com/dev/key/app

有两个,别选错了

开发api key 版本
const key_web_js = '' // web js key
const key_service = '' // web服务 key
export {
 key_web_js,
 key_service
}

Web JS 在使用的时候还需要在服务器中设置对应的安全密钥,具体参见官方文档:

JS API 安全密钥使用 https://lbs.amap.com/api/javascript-api-v2/guide/abc/jscode

二、后台程序

后台:https://github.com/KyleBing/portal

三、用到的技术

  • vue3 + pinia + router
  • ts
  • 高德 API 2.0

四、历程

  • 2021年06月28日 init vue2
  • 2024年07月26日 vite + ts + vue3

五、todo

  • 点过多时,列表滚动 2025年04月18日

About

路书,路线规划,高德地图 api 示例,地图信息 vue3 ts vite

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 49.5%
  • TypeScript 38.8%
  • JavaScript 8.9%
  • SCSS 2.5%
  • CSS 0.2%
  • HTML 0.1%

AltStyle によって変換されたページ (->オリジナル) /