sjz-metro's Introduction
1. 通过高德、百度或者谷歌等获取到石家庄地铁的数据。在我的案例中,我是通过高德获取的数据(数据见https://github.com/Arthur-lt/sjz-metro) 2. 处理数据,将数据里面的经纬度、站名提取出来,分别放在一个latlng&name的数组中 3. 新建3个layerGroup,用来存放1号线、3号线以及全部线路 4. 根据latlng数组,绘制站点和线路。用name数组给每个站点添加上名字 5. 设置js点击事件,根据用户点击线路显示对应的线路。注意:这里要使用removeLayer||removeFrom
sjz-metro's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.