Skip to content

Commit

Permalink
Closes #118 - changed icon type to Image or string
Browse files Browse the repository at this point in the history
  • Loading branch information
dapriett committed May 21, 2017
1 parent 0b36c52 commit 49307b9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion map-view.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion map-view.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export class Marker {
public anchor: Array<number>;
public title: string;
public snippet: string;
public icon: Image;
public icon: Image|string;
public alpha: number;
public flat: boolean;
public draggable: boolean;
Expand Down
2 changes: 1 addition & 1 deletion map-view.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 49307b9

Please sign in to comment.