当前位置:网站首页>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;
}
边栏推荐
- 论文学习记录随笔 多标签之GLOCAL
- 葫芦儿 APP 使用帮助
- Arcserver password reset (account cannot be reset)
- skywalking集成nacos动态配置
- 穿越派与贸大合作,为大学生增添效率
- LeetCode 最大矩形,最大正方形系列 84. 85. 221. 1277. 1725. (单调栈,动态规划)
- DEV XPO对比之UOW
- SystemVerilog学习-10-验证量化和覆盖率
- Bat operation FTP upload and download command
- Geoffrey Hinton: my 50 years of in-depth study and Research on mental skills
猜你喜欢

Scope data export mat

3D打印机穿线:5种简单的解决方案

解决麒麟V10上传文件乱码问题

机械臂速成小指南(六):步进电机驱动器

健康照明中应用的LED照明灯

Through cooperation with the University of international trade, we can increase efficiency for college students

Arcserver password reset (account cannot be reset)

指数法和Random Forest实现山东省丰水期地表水体信息
![kotlin位运算的坑(bytes[i] and 0xff 报错)](/img/2c/de0608c29d8af558f6f8dab4eb7fd8.png)
kotlin位运算的坑(bytes[i] and 0xff 报错)

蚂蚁新村田头村变甜头村 让厦门灌口镇田头村变甜头村的特色农产品之一是
随机推荐
Chip, an empire built on sand!
PLA not pasted on the bed: 6 simple solutions
srpingboot security demo
Scope data export mat
指数法和Random Forest实现山东省丰水期地表水体信息
Why use huluer pie disk instead of U disk?
OpenGL ES: (1) OpenGL ES的由来 (转)
Oracle create user + Role
这才是大学生必备软件 | 知识管理
Timer based on LabVIEW
Code shoe set - mt3114 · interesting balance - explain it with examples
What if the data in the cloud disk is harmonious?
机械臂速成小指南(六):步进电机驱动器
Servlet
Crossing pie · pie pan + Mountain duck = local data management
3D打印机穿线:5种简单的解决方案
Oracle 序列+触发器
Code shoe set - mt3149 · and - the data is not very strong. Violent pruning can deceive AC
2022 the 8th China International "Internet +" college student innovation and entrepreneurship competition industry proposition track is open for registration!
kotlin位运算的坑(bytes[i] and 0xff 报错)