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; } /**