当前位置:网站首页>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;
}
边栏推荐
- Index method and random forest to realize the information of surface water body in wet season in Shandong Province
- OpenGL ES: (3) EGL、EGL绘图的基本步骤、EGLSurface、ANativeWindow
- Huluer app help
- C XML help class
- Skywalking integrated Nacos dynamic configuration
- Continue to learn MySQL
- Crossing pie · pie pan + Mountain duck = local data management
- Diagramme dynamique Excel
- Database problems, how to optimize Oracle SQL query statements faster and more efficient
- 论文学习记录随笔 多标签之LSML
猜你喜欢
随机推荐
SystemVerilog学习-07-类的继承和包的使用
C language beginner level - realize the minesweeping game
Record currency in MySQL
Advanced drawing skills of Excel lecture 100 (1) - use Gantt chart to show the progress of the project
Through cooperation with the University of international trade, we can increase efficiency for college students
c# Xml帮助类
从诺奖知“边缘计算”的未来!
The row and column numbers of each pixel of multi-source grid data in the same area are the same, that is, the number of rows and columns are the same, and the pixel size is the same
蚂蚁新村田头村变甜头村 让厦门灌口镇田头村变甜头村的特色农产品之一是
FPGA - 7系列 FPGA内部结构之Clocking -01- 时钟架构概述
Multi label lsml for essay learning records
OpenGL es: (4) detailed explanation of EGL API (Continued)
浏览器端保存数据到本地文件
Code shoe set - mt3149 · and - the data is not very strong. Violent pruning can deceive AC
In win10 and win11, the scroll direction of Elan touch panel is reversed, and "double finger click to open the right-click menu" and "double finger scroll" are started“
Code shoe set - mt3114 · interesting balance - explain it with examples
ONEFLOW source code parsing: automatic inference of operator signature
PLA不粘贴在床上:6个简单的解决方案
srpingboot security demo
OpenGL ES: (2) OpenGL ES 与 EGL、GLSL的关系









