From 1ebd49703ad865858ae9e92adb716d486fbe3b90 Mon Sep 17 00:00:00 2001 From: bolkhovsky Date: Thu, 31 Oct 2013 11:46:43 +0400 Subject: [PATCH] Fix Leaflet TileLayer.WMS class definition --- leaflet/leaflet.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/leaflet/leaflet.d.ts b/leaflet/leaflet.d.ts index 5cdc961bd..46f6bea73 100644 --- a/leaflet/leaflet.d.ts +++ b/leaflet/leaflet.d.ts @@ -932,7 +932,7 @@ declare module L { */ setUrl(urlTemplate: string): TileLayer; - static WMS: new () => WMS; + static WMS: new (url: string, options: WMSOptions) => WMS; static Canvas: new () => Canvas; @@ -998,7 +998,7 @@ declare module L { } - export class WMS { + export class WMS extends TileLayer { /** * Instantiates a WMS tile layer object given a base URL of the WMS service and * a WMS parameters/options object. @@ -1009,11 +1009,11 @@ declare module L { * Merges an object with the new parameters and re-requests tiles on the current * screen (unless noRedraw was set to true). */ - setParams(params: WMS, noRedraw?: boolean): WMS; + setParams(params: any, noRedraw?: boolean): WMS; } - export class Canvas { + export class Canvas extends TileLayer { /** * Instantiates a Canvas tile layer object given an options object (optionally). */