当前位置:网站首页>Node-RED系列(二五):集成高德地图并实现3d地图和轨迹回放
Node-RED系列(二五):集成高德地图并实现3d地图和轨迹回放
2022-06-13 09:33:00 【拿我格子衫来】
前言
在上一篇文章中 我向大家介绍了如何 在node-red中使用高德地图的api sdk。并向大家展示了如何使用template来显示一个地图组件。那么本篇文件中我就教大家如何实现实现一个3D地图显示到面板上。
并实现一个地图中常用的功能,轨迹回放,这在路线规划,车辆导航中非常使用。结合其他的功能也能实现酷炫的效果。下面详细介绍一个这两个案例。
3d地图的显示
要制作一个3d地图,仅仅引入sdk是不够的,还需要引入其他的插件。
高德地图的 JS API 3D 地图是基于矢量地图数据提供的新的地图视图效果,相比 2D 地图增加了对旋转、视角倾斜等地图功能的支持。3D 地图基于 WEBGL 开发,在保证流畅度的同时,增加了对无级别缩放等功能的支持。
看一下效果
下面我们来实现一下该案例。
首先在node-red的编辑面板里,引入template节点,编写节点的内容。
引入/amap-loader.js
配置高德地图KEY,加载SDK
编写初始化地图的代码
AMapLoader.load({
//首次调用 load</
边栏推荐
- Classes and objects -- object model and this pointer
- Attack and defense world PWN shell
- The rise of cloud computing enterprises and the shaking of Oracle database market dominance
- LeetCode 202. Happy number
- Exception handling operation
- Jenkins access openldap user authentication
- [51nod p3047] displacement operation [bit operation]
- 【pytorch环境安装搭建】
- (Dijkstra + shortest circuit + by point n^2) acwing 849 Dijkstra finding the shortest path I
- 二叉树简介
猜你喜欢
(state compression dp+ binary) acwing 91 Shortest Hamilton path
Classes and objects -- polymorphic
【pytorch环境安装搭建】
[implementation of depth first search]
Exploitation of competitive loopholes in attacking and defending world PWN play conditions
(dijkstra+ shortest path + edge traversal 0 (m)) acwing 850 Dijkstra finding the shortest path II
Tree and binary tree: basic operation and implementation of binary tree
[pytorch environment installation]
VGA常用分辨率及计算方法
Analysis and implementation of variable parameters in C language
随机推荐
VDD, dvdd, avdd, VCC, afvdd, dovdd, iovdd
Acwing785. quick sort (sort+ quick sort + merge sort)
【 ssl2 ⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶⁶83
LeetCode 2016. Maximum difference between incremental elements
Zigzag transformation
Jenkins access openldap user authentication
微信小程序客服自动回复——PHP实现
[ssl1280] full arrangement
Exploitation of competitive loopholes in attacking and defending world PWN play conditions
Acwing 787. Merge sort
C language structure
MySQL事务隔离级别和MVCC
Haproxy + keepalived for high availability load balancing of MySQL
Consolas-with-Yahei
[poj1845] sumdiv [number theory]
Protocol UART of schematic diagram
LeetCode 583. Deleting two strings
Dpdk timer learning notes
C language: Address Book
VGA常用分辨率及计算方法