mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Add the options argument to openlayers custom control
This commit is contained in:
Vendored
+20
@@ -1070,6 +1070,25 @@ declare namespace olx {
|
||||
rightHanded?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
namespace control {
|
||||
interface ControlOptions {
|
||||
/**
|
||||
* The element is the control's container element. This only needs to be specified if you're developing a custom control.
|
||||
*/
|
||||
element?: Element;
|
||||
|
||||
/**
|
||||
* Function called when the control should be re-rendered. This is called in a requestAnimationFrame callback.
|
||||
*/
|
||||
render?: any;
|
||||
|
||||
/**
|
||||
* Specify a target if you want the control to be rendered outside of the map's viewport.
|
||||
*/
|
||||
target?: Element | string;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -2388,6 +2407,7 @@ declare namespace ol {
|
||||
}
|
||||
|
||||
class Control {
|
||||
constructor(options: olx.control.ControlOptions);
|
||||
}
|
||||
|
||||
class FullScreen {
|
||||
|
||||
Reference in New Issue
Block a user