From 804c986121d3f8208d61d6dc1ea685a05a54db57 Mon Sep 17 00:00:00 2001 From: Thor Schueler Date: Tue, 17 Sep 2019 17:01:09 -0500 Subject: [PATCH] Corrected bug related to Issue #110. --- src/models/bing/bing-label.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/models/bing/bing-label.ts b/src/models/bing/bing-label.ts index bbc9ed3..ee031cc 100644 --- a/src/models/bing/bing-label.ts +++ b/src/models/bing/bing-label.ts @@ -70,7 +70,8 @@ export class BingMapLabel extends MapLabel { * @method */ public GetMap(): Microsoft.Maps.Map { - return (this).getMap(); + if (typeof (this).getMap === 'function') { return (this).getMap(); } + return null; } /**