- Notifications
You must be signed in to change notification settings - Fork6
timebusker/offline-map
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
1. 基本说明
本项目实现了离线展示百度、谷歌、高德、腾讯地图。主要功能如下:
2. 地图瓦片下载工具及配置
工具下载链接:http://pan.baidu.com/s/1qYoHj4K 密码: ehgh
最新地址:https://pan.baidu.com/s/1miMF9nM
工具使用方法:
- 数据库配置
打开工具目录中的 MapDownloader.exe.config 文件。根据实际情况填写如图中的配置信息。
- 地图瓦片图下载-
map-downloader
打开工具目录中 MapDownloader.exe -> 选择画图工具、矩形 -> 地图上框选区域 -> 存储方式选择MySQL数据库 -> Zoom根据需要选择 -> 点击下载
备注:数据库中Type字段指的是地图类型,对于谷歌地图 普通地图(1818940751)、卫星地图(47626774)、标注(1024577166)。此工具功能丰富,可细细研究。
3. node.js服务配置
- 修改
map-server中的mysql.js中的配置。根据实际情况,配置数据库链接 - 进入目录
cd offline-map/map-server - 安装资源
npm install - 启动服务
npm start - 服务地址
http://127.0.0.1:3001
4. 页面展示
打开map-client文件夹中的index.html即可。
如本项目对您有所帮助,欢迎Star。
About
基于MySQL + Node.js + Leaflet的离线地图展示,支持百度、谷歌、高德、腾讯地图
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.




