Allow ol.Overlay positioning option to be a string

This commit is contained in:
Tom Payne
2014-02-06 19:24:49 +01:00
parent 14f40e6f47
commit dc2bb57d18
2 changed files with 3 additions and 2 deletions

View File

@@ -134,7 +134,8 @@ ol.Overlay = function(options) {
this.setPosition(options.position);
}
if (goog.isDef(options.positioning)) {
this.setPositioning(options.positioning);
this.setPositioning(
/** @type {ol.OverlayPositioning} */ (options.positioning));
}
};