Merge pull request #284 from twpayne/full-screen-fit-projection-extent

Fit map to projection extent in full screen example
This commit is contained in:
Tom Payne
2013-03-06 02:50:46 -08:00
2 changed files with 4 additions and 0 deletions

View File

@@ -22,6 +22,8 @@ var map = new ol.Map({
zoom: 0
})
});
var view2d = map.getView().getView2D();
view2d.fitExtent(view2d.getProjection().getExtent(), map.getSize());
var geolocation = new ol.Geolocation();
geolocation.bindTo('projection', map.getView());

View File

@@ -1 +1,3 @@
@exportClass ol.View2D ol.View2DOptions
@exportProperty ol.View2D.prototype.fitExtent
@exportProperty ol.View2D.prototype.getView2D