当前位置:网站首页>Using Baidu map to query national subway lines
Using Baidu map to query national subway lines
2022-07-01 06:05:00 【Nick_ Zhang】
I've done a project recently , The project can facilitate the inquiry of subway lines nationwide , Simulated car arrival reminder on the subway line , Click the trolley to trigger related events , The use of api Baidu map query subway line , Subway Map api, combining vue-baidu-map
1. Judge whether the loading of metro route map is completed
this.subway.addEventListener("subwayloaded", res => {
const lines = this.subway.getLines();
})
2. Click the trolley to trigger related events
because landmarkPois For the initial [] , When the data is obtained later, it is inserted into the docking station data , and vue-baidu-map The road book in will be due to landmarkPois Triggered by the change of reload Method , Cause two cars to appear , So we still use the original road book
// Fill in the road book information
const lushu = new BMapLib.LuShu();
const length = Object.keys(lushu).length;
if (length) {
// Car id
this.markId = lushu._marker.da;
}
边栏推荐
- OpenGL es: (1) origin of OpenGL es (transfer)
- OpenGL ES: (5) OpenGL的基本概念、OpenGL ES 在屏幕产生图片的过程、OpenGL管线(pipeline)
- Small guide for rapid completion of mechanical arm (VI): stepping motor driver
- LeetCode 最大矩形,最大正方形系列 84. 85. 221. 1277. 1725. (单调栈,动态规划)
- 2022 the 8th China International "Internet +" college student innovation and entrepreneurship competition industry proposition track is open for registration!
- 亲爱的派盘用户,我要向您表白!
- It's not that you have a bad mind, but that you haven't found the right tool
- 穿越派 你的数据云行
- Index method and random forest to realize the information of surface water body in wet season in Shandong Province
- Thesis learning record essay multi label lift
猜你喜欢

相同区域 多源栅格数据 各个像元行列号一致,即行数列数相同,像元大小相同

论文学习记录随笔 多标签之LIFT

How to add a gourd pie plate

让田头村变甜头村的特色农产品是仙景芋还是白菜

Smartinstantiationawarebeanpostprocessor of the extension point series determines which construction method to execute - Chapter 432

数据库问题,如何优化Oracle SQL查询语句更快,效率更高

葫芦儿 APP 使用帮助

On the first day of the new year, 3000 Apache servers went down

excel动态图表

扩展点系列之SmartInstantiationAwareBeanPostProcessor确定执行哪一个构造方法 - 第432篇
随机推荐
Orcle创建用户+角色
freeswitch拨打分机号
Ucosiii --- engineering transplantation
穿越派·派盘 + 思源笔记 = 私人笔记本
论文学习记录随笔 多标签之LIFT
2022 the 8th China International "Internet +" college student innovation and entrepreneurship competition industry proposition track is open for registration!
Thoughts on a "01 knapsack problem" expansion problem
1034 Head of a Gang
Stack Title: parsing Boolean expressions
ArcServer密码重置(账号不可以重置)
亲爱的派盘用户,我要向您表白!
Send you through the data cloud
让厦门灌口镇田头村变“甜头”村的特色农产品之一是
Linux closes the redis process SYSTEMd+
π disk, turning your computer into a personal private cloud
C language beginner level - realize the minesweeping game
浏览器端保存数据到本地文件
skywalking集成nacos动态配置
Preliminary level of C language -- selected good questions on niuke.com
扩展点系列之SmartInstantiationAwareBeanPostProcessor确定执行哪一个构造方法 - 第432篇