Map for the MATERIAL

How to load the map for the material without using tsyring.
Because I am using shape diver with CDN.

new SDV.MapData(‘https://i.imgur.com/d3nacS9.png’)
when I do this it gives an error.
error

and when I do this, this error comes
let map = SDV.MaterialEngine.loadMap(“https://viewer.shapediver.com/v3/images/SD_color.png”)
error2

Hi Muhammad,

Could you quickly confirm which company/project you’re working on? Did you start a trial or do you have a paid plan already?

Hi, I am working on jewelry website project.
I am working as a front end developer for a company.

Thank you for clarifying this. Do you already have a trial of any of our plans or have an active plan? If so, which one is your ShapeDiver account?

I personally don’t have an account.

The company I am working with have an account with active plan.
Do I really need to contact them to get answers to my questions??

It would help us understand which plan your company has, so we know which features you have access to, so we can provide better help.

Ok I will contact them and get back to you.
Meanwhile can you help me with this question?
How can I load a map for the material from URL string? I am using shapediver through CDN ?

Hello @Muhammad_waleed_akht,

so there is an easy solution to this. MapData does not take a link, but an HTMLImageElement as an input. Here is an example where I tried this and it works.
Additionally, here is the documentation.

Is there a specific reason why you use the CDN instead of the NPM package? This issue could have been avoided with the types that are provided with the NPM package.

Cheers, Michael

The whole app is built with CDN and its years of work so that’s why stuck with the CDN unfortunately.