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:
@@ -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());
|
||||
|
||||
@@ -1 +1,3 @@
|
||||
@exportClass ol.View2D ol.View2DOptions
|
||||
@exportProperty ol.View2D.prototype.fitExtent
|
||||
@exportProperty ol.View2D.prototype.getView2D
|
||||
|
||||
Reference in New Issue
Block a user