Search code examples
openlayersopenlayers-3

How do Bounds work in OpenLayers 3?


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?


Solution

  • UPDATE: OL4: https://openlayers.org/en/latest/apidoc/ol.html#.Extent

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

    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