From 49307b9fc52069c1f948bc9e3767b78a9e41f641 Mon Sep 17 00:00:00 2001 From: Dan Prietti Date: Sat, 20 May 2017 23:49:16 -0400 Subject: [PATCH] Closes #118 - changed icon type to Image or string --- map-view.android.ts | 2 +- map-view.d.ts | 2 +- map-view.ios.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/map-view.android.ts b/map-view.android.ts index 09dabf9..4f98ae7 100644 --- a/map-view.android.ts +++ b/map-view.android.ts @@ -513,7 +513,7 @@ export class Marker extends MarkerBase { return this._icon; } - set icon(value: Image) { + set icon(value: Image|string) { if (typeof value === 'string') { var tempIcon = new Image(); tempIcon.imageSource = imageSource.fromResource(String(value)); diff --git a/map-view.d.ts b/map-view.d.ts index fb725d8..e380871 100644 --- a/map-view.d.ts +++ b/map-view.d.ts @@ -99,7 +99,7 @@ export class Marker { public anchor: Array; public title: string; public snippet: string; - public icon: Image; + public icon: Image|string; public alpha: number; public flat: boolean; public draggable: boolean; diff --git a/map-view.ios.ts b/map-view.ios.ts index 74102ac..9e10c62 100644 --- a/map-view.ios.ts +++ b/map-view.ios.ts @@ -411,7 +411,7 @@ export class Marker extends MarkerBase { return this._icon; } - set icon(value: Image) { + set icon(value: Image|string) { if (typeof value === 'string') { var tempIcon = new Image(); tempIcon.imageSource = imageSource.fromResource(String(value));