Skip to content

本项目基于React前端框架,实现leaflet离线地图(可以根据需求自定义地图区域以及缩放级别),后端采用Springboot服务发布离线地图瓦片,包含详细教程;This project is based on the front-end framework of React, leaflet-based offline map (you can customize the map area and zoom level according to demand), the back-end Springboot service to publish offline map tiles, including detailed tutorials

Notifications You must be signed in to change notification settings

ericzikun/offline-React-leaflet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Readme

  1. 地图的瓦片读取加载在如下位置:

image-20200726093443738

  1. 后端可以采用Springboot,分为Springboot服务和瓦片地图两种方式,将瓦片地图(roadmap文件)存放在电脑上某个路径下下,并把此路径替换Springboot中的application.properties--DATA_PATH

    image-20200726093443738

    点击OfflinemapApplication并运行服务即可 默认启动8080端口 ,(后面也可以直接打jar包,终端运行也可以):

    image-20200726093620231
  2. 前端offline-React-leaflet:cd到文件下:

    • 安装依赖项:yarn install
    • 运行项目:yarn start

About

本项目基于React前端框架,实现leaflet离线地图(可以根据需求自定义地图区域以及缩放级别),后端采用Springboot服务发布离线地图瓦片,包含详细教程;This project is based on the front-end framework of React, leaflet-based offline map (you can customize the map area and zoom level according to demand), the back-end Springboot service to publish offline map tiles, including detailed tutorials

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published