diff --git a/examples/full-screen.html b/examples/full-screen.html index 11a3d5d560..408161e4f5 100644 --- a/examples/full-screen.html +++ b/examples/full-screen.html @@ -1,54 +1,21 @@ - - + + - + - + Full-Screen example - Full-screen example -
- -
-

Full-screen example

-
Example of a full-screen map.
-
-

See the - full-screen.js source - to see how this is done.

-
-
-
-
fullscreen, mapquest, openaerial, tile, tilelayer
+
diff --git a/examples/full-screen.js b/examples/full-screen.js index 6eaf791e76..6835c39544 100644 --- a/examples/full-screen.js +++ b/examples/full-screen.js @@ -1,7 +1,5 @@ -goog.require('ol.AnchoredElement'); goog.require('ol.Collection'); goog.require('ol.Coordinate'); -goog.require('ol.Geolocation'); goog.require('ol.Map'); goog.require('ol.RendererHints'); goog.require('ol.View2D'); @@ -25,21 +23,3 @@ 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()); - -var element = document.getElementById('geolocation'); -var marker = new ol.AnchoredElement({ - map: map, - element: element -}); -marker.bindTo('position', geolocation); - -// This is silly: gjslint generates a "No docs found for member -// 'element.style.display'" without the auto-executing function. -(function() { - element.style.display = 'block'; -})();