当前位置:网站首页>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;
}
边栏推荐
- srpingboot security demo
- Excel dynamic chart
- OpenGL ES: (3) EGL、EGL绘图的基本步骤、EGLSurface、ANativeWindow
- three. JS summary
- 2022 the 8th China International "Internet +" college student innovation and entrepreneurship competition industry proposition track is open for registration!
- Differences between in and exists in MySQL
- SystemVerilog学习-06-类的封装
- Skywalking integrated Nacos dynamic configuration
- excel可视化
- 从诺奖知“边缘计算”的未来!
猜你喜欢

Primary application case of Excel DuPont analyzer

Skywalking integrated Nacos dynamic configuration

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

FPGA - 7系列 FPGA内部结构之Clocking -01- 时钟架构概述

skywalking集成nacos动态配置

DHT11 温湿度传感器

Talking from mlperf: how to lead the next wave of AI accelerator

SystemVerilog学习-08-随机约束和线程控制

Leetcode Max rectangle, Max square series 84 85. 221. 1277. 1725. (monotonic stack, dynamic programming)

Call us special providers of personal cloud services for College Students
随机推荐
DHT11 温湿度传感器
Infinite horizontal marble game
Pit of kotlin bit operation (bytes[i] and 0xff error)
TIDB数据库特性总结
FPGA - 7系列 FPGA内部结构之Clocking -02- 时钟布线资源
Stack Title: parsing Boolean expressions
How to add a gourd pie plate
云盘里资料被和谐了,怎么办?
SystemVerilog学习-10-验证量化和覆盖率
Highmap gejson data format conversion script
Essay learning record essay multi label Global
3D打印机穿线:5种简单的解决方案
Beauty of Mathematics - Application of Mathematics
restframework-simpleJWT重写认证机制
Chip, an empire built on sand!
This is the necessary software for college students 𞓜 knowledge management
Advanced drawing skills of Excel lecture 100 (1) - use Gantt chart to show the progress of the project
SystemVerilog学习-08-随机约束和线程控制
1034 Head of a Gang
MySQL里记录货币