Note about data extent
@@ -31,3 +31,7 @@ Features can already be accessed with ol.Map#getFeatures. #850 adds event handli
|
||||
## Persist Edits
|
||||
|
||||
The layer source can also provide a way to save changes for protocols that support CRUD.
|
||||
|
||||
## Other Vector Data Interactions
|
||||
|
||||
To zoom to the data extent of a vector layer, OpenLayers 2 had a getDataExtent method on the vector layer. As long as the responsibilities of layer and source are still under discussion, we could expose something like a `ol.Map#zoomToLayer()` method, which could be implemented for all layer types, and would use the data extent of a vector layer with a fixed strategy.
|
||||
|
||||
Reference in New Issue
Block a user