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

@@ -1,6 +1,5 @@
goog.require('ol.Map');
goog.require('ol.Overlay');
goog.require('ol.OverlayPositioning');
goog.require('ol.RendererHints');
goog.require('ol.View2D');
goog.require('ol.coordinate');
@@ -28,7 +27,7 @@ var pos = ol.proj.transform([16.3725, 48.208889], 'EPSG:4326', 'EPSG:3857');
// Vienna marker
var marker = new ol.Overlay({
position: pos,
positioning: ol.OverlayPositioning.CENTER_CENTER,
positioning: 'center-center',
element: document.getElementById('marker'),
stopEvent: false
});