I used the following code to load map
new window.google.maps.Map(ref.current as HTMLElement, {
center: { lat: -34.0, lng: 150.6 },
zoom: 8,
});
I have used the wrapper in the parent component. But on the Map method IDE is following error.
Property 'Map' does not exist on type 'typeof maps'
I have installed the types as well. My map is loading but the only problem is IDE is showing error. I have suspended the error using //@ts-ignore . Please resolve this issue or help me if there is any existing solution.
I used the following code to load map
I have used the wrapper in the parent component. But on the Map method IDE is following error.
Property 'Map' does not exist on type 'typeof maps'I have installed the types as well. My map is loading but the only problem is IDE is showing error. I have suspended the error using //@ts-ignore . Please resolve this issue or help me if there is any existing solution.