Giter Site home page Giter Site logo

ericzikun / offline-react-leaflet Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.05 MB

本项目基于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

HTML 0.78% CSS 3.56% JavaScript 95.66%

offline-react-leaflet's People

Contributors

ericzikun avatar

Stargazers

 avatar

Watchers

 avatar

offline-react-leaflet's Issues

后端服务请求失败

您好,我把后端项目正常启动了,前端用的是Vue+leaflet,可是一直请求不到后端带瓦片数据,求教一下这是什么原因呢?部分代码:
methods: {
initMap() {
var myMap = L.map("map").setView([29.5, 110.5], 9);
var url = 'http://localhost:8081/xyz/newtask/{z}/{x}/{y}.png'
L.tileLayer(url,{minZoom:1,maxZoom:12}).addTo(myMap);
},
},
mounted() {
this.initMap()
},

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.