diff --git a/examples/geolocation.js b/examples/geolocation.js
index 4987b38c2b..fce765f696 100644
--- a/examples/geolocation.js
+++ b/examples/geolocation.js
@@ -1,6 +1,7 @@
goog.require('ol.Geolocation');
goog.require('ol.Map');
goog.require('ol.Overlay');
+goog.require('ol.OverlayPositioning');
goog.require('ol.RendererHints');
goog.require('ol.View2D');
goog.require('ol.dom.Input');
@@ -37,7 +38,8 @@ geolocation.on('change', function() {
});
var marker = new ol.Overlay({
- element: /** @type {Element} */ ($('').addClass('icon-flag').get(0))
+ element: /** @type {Element} */ ($('').addClass('icon-flag').get(0)),
+ positioning: ol.OverlayPositioning.BOTTOM_LEFT
});
map.addOverlay(marker);
// bind the marker position to the device location.
diff --git a/examples/icon.js b/examples/icon.js
index 9367267e60..582bf2cca0 100644
--- a/examples/icon.js
+++ b/examples/icon.js
@@ -1,5 +1,6 @@
goog.require('ol.Map');
goog.require('ol.Overlay');
+goog.require('ol.OverlayPositioning');
goog.require('ol.RendererHint');
goog.require('ol.View2D');
goog.require('ol.layer.Tile');
@@ -63,7 +64,8 @@ var map = new ol.Map({
var element = document.getElementById('popup');
var popup = new ol.Overlay({
- element: element
+ element: element,
+ positioning: ol.OverlayPositioning.BOTTOM_CENTER
});
map.addOverlay(popup);
diff --git a/examples/overlay.html b/examples/overlay.html
index c5f6c7c515..6acde92fb1 100644
--- a/examples/overlay.html
+++ b/examples/overlay.html
@@ -9,6 +9,14 @@