во время инициализации карты возникает ошибка Невозможно прочитать свойство 'version' из неопределенного . Вчера это работало как шарм. Любое решение для этого? Я использую новый Javascript API 3.1
this.platform = new this.H.service.Platform({
apikey: environment.hereMapApiKey_31,
useHTTPS: true
});
<link rel="stylesheet" type="text/css" href="https://js.api.here.com/v3/3.1/mapsjs-ui.css" />
<script src="https://js.api.here.com/v3/3.1/mapsjs-core.js"></script>
<script src="https://js.api.here.com/v3/3.1/mapsjs-service.js"></script>
<script src="https://js.api.here.com/v3/3.1/mapsjs-ui.js"></script>
<script src="https://js.api.here.com/v3/3.1/mapsjs-mapevents.js"></script>
ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'version' of undefined
TypeError: Cannot read property 'version' of undefined
at X.Ik (eval at <anonymous> (mapsjs-core.js:71), <anonymous>:44:738)
at new X (eval at <anonymous> (mapsjs-core.js:71), <anonymous>:44:474)
at HereMapService.initializeMap (hereMap.service.ts:23)
at hereMap.component.ts:66
at ZoneDelegate.invoke (zone-evergreen.js:365)
at Object.onInvoke (core.js:39699)
at ZoneDelegate.invoke (zone-evergreen.js:364)
at Zone.run (zone-evergreen.js:124)
at zone-evergreen.js:851
at ZoneDelegate.invokeTask (zone-evergreen.js:400)
at resolvePromise (zone-evergreen.js:793)
at resolvePromise (zone-evergreen.js:752)
at zone-evergreen.js:854
at ZoneDelegate.invokeTask (zone-evergreen.js:400)
at Object.onInvokeTask (core.js:39680)
at ZoneDelegate.invokeTask (zone-evergreen.js:399)
at Zone.runTask (zone-evergreen.js:168)
at drainMicroTaskQueue (zone-evergreen.js:570)