diff --git a/examples/geolocation.js b/examples/geolocation.js index d6b065c5f5..2b4db1b916 100644 --- a/examples/geolocation.js +++ b/examples/geolocation.js @@ -1,7 +1,7 @@ -goog.require('ol.AnchoredElement'); goog.require('ol.Coordinate'); goog.require('ol.Geolocation'); goog.require('ol.Map'); +goog.require('ol.Overlay'); goog.require('ol.RendererHints'); goog.require('ol.View2D'); goog.require('ol.layer.TileLayer'); @@ -25,7 +25,7 @@ var map = new ol.Map({ var geolocation = new ol.Geolocation(); geolocation.bindTo('projection', map.getView()); -var marker = new ol.AnchoredElement({ +var marker = new ol.Overlay({ map: map, element: /** @type {Element} */ ($('').addClass('icon-flag').get(0)) }); diff --git a/examples/anchored-elements.html b/examples/overlay.html similarity index 87% rename from examples/anchored-elements.html rename to examples/overlay.html index 16833dd89b..a0b6338f9a 100644 --- a/examples/anchored-elements.html +++ b/examples/overlay.html @@ -62,7 +62,7 @@ margin-left: -13px; } -
Demonstrates anchored elements.
+Demonstrates overlays.
See the anchored-elements.js source to see how this is done.
+See the overlay.js source to see how this is done.