Merge pull request #19735 from wb14123/patch-1

Add undefined type to ol.Overlay.setPosition
This commit is contained in:
Arthur Ozga
2017-09-14 11:45:52 -07:00
committed by GitHub
2 changed files with 5 additions and 2 deletions

View File

@@ -1,6 +1,8 @@
// Type definitions for OpenLayers v4.3.0
// Project: http://openlayers.org/
// Definitions by: Olivier Sechet <https://github.com/osechet>, Guilhem Brouat <https://github.com/ganlhi>
// Definitions by: Olivier Sechet <https://github.com/osechet>
// Guilhem Brouat <https://github.com/ganlhi>
// Bin Wang <https://github.com/wb14123>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Definitions partially generated using tsd-jsdoc (https://github.com/englercj/tsd-jsdoc)
@@ -7597,7 +7599,7 @@ declare module ol {
* @observable
* @api stable
*/
setPosition(position: (ol.Coordinate)): void;
setPosition(position: (ol.Coordinate | undefined)): void;
/**
* Set the positioning for this overlay.

View File

@@ -590,6 +590,7 @@ voidValue = popup.setElement(popupElement);
voidValue = popup.setMap(popupMap);
voidValue = popup.setOffset(popupOffset);
voidValue = popup.setPosition(coordinate);
voidValue = popup.setPosition(undefined);
voidValue = popup.setPositioning(popupPositioning);