Replaced any with correct methods

This commit is contained in:
matjos
2015-09-02 23:10:18 +02:00
parent c1592cc0ad
commit 133698acc7
+7 -3
View File
@@ -118,7 +118,7 @@ declare module olx {
interface ImageWMSOptions extends BaseWMSOptions {
/** experimental Optional function to load an image given a URL. */
imageLoadFunction?: any;
imageLoadFunction?: ol.ImageLoadFunctionType;
/** Ratio. 1 means image requests are the size of the map viewport, 2 means twice the width and height of the map viewport, and so on. Must be 1 or higher. Default is 1.5. */
ratio?: number;
@@ -139,7 +139,7 @@ declare module olx {
maxZoom?: number;
/** experimental Optional function to load a tile given a URL. */
tileLoadFunction?: any; //todo
tileLoadFunction?: ol.TileLoadFunctionType;
/** WMS service urls. Use this instead of url when the WMS supports multiple urls for GetMap requests. */
urls?: Array<string>;
@@ -354,7 +354,7 @@ declare module olx {
* a {number} view resolution and an {ol.Coordinate} as arguments, and returns the {number}
* resolution at the passed coordinate.
*/
getPointResolution?: any;
getPointResolution?: (resolution: number, coordinate: ol.Coordinate) => number;
}
module animation {
@@ -951,6 +951,10 @@ declare module olx {
*/
declare module ol {
interface TileLoadFunctionType{ (image: ol.Image, url: string): void }
interface ImageLoadFunctionType{ (image: ol.Image, url: string): void }
/**
* An attribution for a layer source.
*/