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

Appearance settings
Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MapBox本地化部署策略

公瑾大佬的本地化部署文档


  • 发布当前项目来运行并查看
  • 使用的为谷歌地图切片(可以使用本地mbtiles来进行使用)
  • 对应文档为:文档
  • 具体部署策略如下:

1:使用Nginx或其他,修改配置文件 nginx.conf 中的配置:

location / {
            #修改当前路径 端口为80,如为其他端口请修改index.html中请求路径
            root   C:\Users\Administrator\Desktop\MapBox;
            index  index.html index.htm;
        }

2:启动Nginx即可看到本地化。

3:切片数据本地化实现真正本地化部署。

4:增加了mbtiles文件夹,内部存放了全球地图(仅限测试使用),可以使用tileServer 来进行解析mbtiles来进行访问。

5:更新到了最新正式版的1.4.1版本的js及css文件。

6:国内用户可以查看gitee

7:关于自定义雪碧图,可以查看:自定义雪碧图

8:效果预览:https://map.xiaofsu.com 谷歌服务封禁,大家可以替换成可用的源。

9:使用mbview来读取mbtiles文件,docker版本使用:https://hub.docker.com/r/xiaofsu/mbview

About

MapBox的本地化部署文件

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.