Shared module for overlay positioning enum

This commit is contained in:
Tim Schaub
2016-12-27 13:57:55 -07:00
parent 7ee52f413d
commit 9ddee2ea4e
4 changed files with 41 additions and 39 deletions

View File

@@ -8,6 +8,7 @@ goog.require('ol.MapProperty');
goog.require('ol.Object');
goog.require('ol.ObjectEventType');
goog.require('ol.Overlay');
goog.require('ol.OverlayPositioning');
goog.require('ol.ViewProperty');
goog.require('ol.control.Control');
goog.require('ol.coordinate');
@@ -123,7 +124,7 @@ ol.control.OverviewMap = function(opt_options) {
*/
this.boxOverlay_ = new ol.Overlay({
position: [0, 0],
positioning: ol.Overlay.Positioning.BOTTOM_LEFT,
positioning: ol.OverlayPositioning.BOTTOM_LEFT,
element: box
});
this.ovmap_.addOverlay(this.boxOverlay_);