mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-03 19:42:27 +08:00
Merge pull request #19735 from wb14123/patch-1
Add undefined type to ol.Overlay.setPosition
This commit is contained in:
6
types/openlayers/index.d.ts
vendored
6
types/openlayers/index.d.ts
vendored
@@ -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.
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user