From ccde41a30a7e951c2097d5ed608387085fa850d4 Mon Sep 17 00:00:00 2001 From: Felix Fung Date: Wed, 18 Sep 2013 04:28:00 -0400 Subject: [PATCH] Leaflet Icon.Default returns an object that extends from Icon From http://leafletjs.com/reference.html#icon "L.Icon.Default extends L.Icon and is the blue icon Leaflet uses for markers by default." --- leaflet/leaflet.d.ts | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/leaflet/leaflet.d.ts b/leaflet/leaflet.d.ts index 336f51cd9..5c17b31c3 100644 --- a/leaflet/leaflet.d.ts +++ b/leaflet/leaflet.d.ts @@ -1898,10 +1898,6 @@ declare module L { } - interface IconDefaults { - imagePath: string; - } - export class Icon { /** * Creates an icon instance with the given options. @@ -1911,7 +1907,16 @@ declare module L { /** * Default properties for newly constructed icons. */ - public static Default : IconDefaults; + public static Default : IconDefault; + } + + export class IconDefault extends Icon { + /** + * Creates an icon instance with default options. + */ + constructor(); + + imagePath: string; } export interface DivIconOptions {