From 9202571558d7446ad24dce90a3fbc13284a5786d Mon Sep 17 00:00:00 2001 From: ahocevar Date: Tue, 9 Jul 2013 06:49:40 -0700 Subject: [PATCH] Note about data extent --- Minimal-Vector-API.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Minimal-Vector-API.md b/Minimal-Vector-API.md index 4a8d5b2..4789166 100644 --- a/Minimal-Vector-API.md +++ b/Minimal-Vector-API.md @@ -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.