From 41085560f68bf410f9bd473e741ca5eeec453bad Mon Sep 17 00:00:00 2001 From: Bruno Binet Date: Mon, 7 Oct 2013 18:36:51 +0200 Subject: [PATCH] Fix overlay positioning in geolocation example --- examples/geolocation.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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.