Use string instead of ol.OverlayPositioning enum in examples

This commit is contained in:
Tom Payne
2014-02-06 19:25:22 +01:00
parent dc2bb57d18
commit 9af436b5a0
3 changed files with 3 additions and 6 deletions

View File

@@ -5,7 +5,6 @@
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');
@@ -45,7 +44,7 @@ geolocation.on('propertychange', function() {
var marker = new ol.Overlay({
element: /** @type {Element} */ ($('<i/>').addClass('icon-flag').get(0)),
positioning: ol.OverlayPositioning.BOTTOM_LEFT,
positioning: 'bottom-left',
stopEvent: false
});
map.addOverlay(marker);