infusion-code / angular-maps

Angular Maps (X-Map) is a set of components and services to provide map functionality in angular 2+ apps. X-Maps architecture is provider independent and can be used with Bing, Google, ESRI or any other service enabled mapping provider. X-Map contains a default implementation for Bing Maps.
MIT License
41 stars 34 forks source link

CreateMap() this._loader.Load is not a function #135

Open ria-stamopoulou opened 3 years ago

ria-stamopoulou commented 3 years ago

Angular v.11 angular11-maps v.6.0.11 bingmaps v.2.0.3

While trying to open the map in a modal I am getting the following error:

this._loader.Load is not a function at BingMapService.CreateMap (angular11-maps.js:11143)

HTML:

<x-map #xmap [Options]="_options" [Box]="_box"> <x-map-marker [Latitude]="39.3224047088176" [Longitude]="22.0880781793979"> </x-map-marker> </x-map>

TS:

_options: IMapOptions = { disableBirdseye: false, disableStreetside: false, navigationBarMode: 1, zoom: 6 };