边界在OpenLayers 3中如何工作? [英] How do Bounds work in OpenLayers 3?

查看:99
本文介绍了边界在OpenLayers 3中如何工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否使用 OpenLayers.Bounds 的概念OpenLayers 2中仍然存在OpenLayers 2.x吗?它有什么变化,它的新名字是什么?

Does the concept of OpenLayers.Bounds from OpenLayers 2.x still exist in OpenLayers 3? How has it changed, and what is its new name?

推荐答案

更新:OL4:似乎边界"或边界框"(BBOX)的新词是范围". 参见:

It seems that the new word for 'bounds' or 'bounding box' (BBOX) is 'extent'. See:

  • http://openlayers.org/en/v3.20.1/apidoc/ol.extent.html
  • http://openlayers.org/en/v3.20.1/apidoc/ol.View.html#fitExtent
  • http://openlayers.org/en/v3.20.1/apidoc/ol.source.Vector.html#getExtent

目前了解情况的一种方法是在OL3存储库中运行搜索,例如: https://github.com/openlayers/ol3/search?p = 3& q = BBOX& type = Code

One way to find out things at the moment is to run searches in the OL3 repo, for example: https://github.com/openlayers/ol3/search?p=3&q=BBOX&type=Code

这篇关于边界在OpenLayers 3中如何工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆