openlayers5学习笔记-map事件(moveend)

//事件:地图移动结束
tmp.map.on('moveend', function (evt) {
    console.log(evt.frameState.extent);
});
evt.frameState.extent:返回数组 
Array[4]=>[a,b,c,d]
(如:
[103.63364982055671, 30.323925744628923, 103.73235511230476, 30.409756433105485])
A、B、C、D四点坐标分别为:
A(a,d)
B(c,d)
C(a,b)
D(c,b)

posted @ 2018-07-26 09:28  接云网络  阅读(2735)  评论(0编辑  收藏  举报