Tomtom map is not displaying

i try to creat a map into my angular project with tomtom but i get an error “Fetch API cannot load tomtom://vector/1/basic-main?key=my key. URL scheme must be “http” or “https” for CORS request.”

which SDK version are you trying?
are you trying to run a file from disk or via http server?

1 Like

version : “@tomtom-international/web-sdk-maps”: “^6.13.0”,

and i run the project with ng serve in the cmd (prot 4200)

Can you open it in a browser with addons disabled?

even if the addons are disabled the error persists

I’ve just created a simple app with a map using this tutorial: https://developer.tomtom.com/maps-sdk-web-js/tutorials-basic/angular-map-display-api-integration-tutorial
And it works fine.
Angular version: 12

This blog also has some helpful tips: Using the TomTom Maps SDK with Angular and TypeScript