Skip to content
openlayers基本功能封装源码
by giser · 2019-04-21
本项目实现功能
- 使用openlayers加载geojson数据为ol.layer.Vector的ol.source.Vector数据源;
- 加载geojson点数据,根据属性设置不同图标ol.style.Icon;
- 实现鼠标移动到地图上点,弹出框显示要素信息,pointermove;
- 实现了空间查询,调用了forEachFeatureAtPixel查询指定图层要素
项目截图

源码下载
[wshop_downloads]
Tags: openlayers基本功能封装源码