From 603c0225571b0058dbc9084d8a10c4ebee942359 Mon Sep 17 00:00:00 2001 From: Kasper Fromm Pedersen Date: Thu, 20 Oct 2016 17:29:27 +0200 Subject: [PATCH 1/2] Adding imagePath property I just added the imagePath property to the L.Icon.Default.imagePath (http://leafletjs.com/reference-1.0.0.html#icon-default-option) --- leaflet/leaflet.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/leaflet/leaflet.d.ts b/leaflet/leaflet.d.ts index c67c02e29b..0cdb84d113 100644 --- a/leaflet/leaflet.d.ts +++ b/leaflet/leaflet.d.ts @@ -1343,6 +1343,7 @@ declare namespace L { export interface Icon extends Layer { createIcon(oldIcon?: HTMLElement): HTMLElement; createShadow(oldIcon?: HTMLElement): HTMLElement; + imagePath: string; } export namespace Icon { From 48c51e234652dbe1557899398aa161fd130e922d Mon Sep 17 00:00:00 2001 From: Kasper Fromm Pedersen Date: Tue, 8 Nov 2016 20:49:31 +0100 Subject: [PATCH 2/2] Changed to follow the documentation --- leaflet/leaflet.d.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/leaflet/leaflet.d.ts b/leaflet/leaflet.d.ts index 0cdb84d113..7f445d4ac0 100644 --- a/leaflet/leaflet.d.ts +++ b/leaflet/leaflet.d.ts @@ -1343,11 +1343,14 @@ declare namespace L { export interface Icon extends Layer { createIcon(oldIcon?: HTMLElement): HTMLElement; createShadow(oldIcon?: HTMLElement): HTMLElement; - imagePath: string; } + export interface IconDefault extends Icon { + imagePath: string; + } + export namespace Icon { - export const Default: Icon; + export const Default: IconDefault; } export function icon(options: IconOptions): Icon;