openlayers和leaflet:现在看,是前端地图开源库的唯二选择,两个都是将切片或者空间数据在浏览器中可视化,并提供与之交互的能力。

 

openlayers和leaflet有些许区别
leaflet专注小而美,只提供基本的地图调用和交互,超出的基本依赖插件,插件很多,也很全;
openlayers把所有的功能做到了一起,自成一体,但保留了扩展其类的功能,全部引入太过臃肿,所以最新的openlayers提供了vue组件式开发,可以只引入需要的部分。所以,这两个各有特点。如果只需要显示地图和简单的交互,使用leaflet合适,复杂的可以尝试使用openlayers。

 

 

leaflet :https://leafletjs.com/reference-1.7.1.html#domevent

 

openlayer: https://openlayers.org/en/latest/apidoc/

 

 

leaflet 聚合点

https://www.npmjs.com/package/leaflet.markercluster

npm i leaflet.markercluster

示例:https://leaflet.github.io/Leaflet.markercluster/example/marker-clustering-realworld.388.html

 

风场插件

https://github.com/danwild/leaflet-velocity

 示例: https://danwild.github.io/leaflet-velocity/

 

相关文章:

  • 2021-07-31
  • 2022-12-23
  • 2021-06-19
  • 2022-01-05
  • 2021-08-09
  • 2021-11-21
  • 2021-05-03
  • 2021-06-06
猜你喜欢
  • 2021-11-17
  • 2021-04-24
  • 2022-12-23
  • 2022-12-23
  • 2021-08-14
  • 2021-09-28
  • 2022-03-10
相关资源
相似解决方案