【发布时间】:2021-03-06 22:41:17
【问题描述】:
OpenLayer - 6.4.3
需要计算当前 EXTENT 的 LENGTH 和 WIDTH 以英里为单位。
然后将 x 英里添加到计算的 LENGTH 和 WIDTH。
然后从新的LENGTH和WIDTH中得到新的extent,中心与初始extent相同。
const extent_initial = this.map.getView().calculateExtent(this.map.getSize());
// get the Length and width in miles from 'extent_inital'
// add x miles to Length and Width
// so Length_new = Length + x , Width_new = Width + x
// Calculate new Extent with Length_new and Width_new and extent_inital center
提前致谢
【问题讨论】:
标签: angular angular8 openlayers-6 extent