0

Map is working normally but when I pass mapId prop (custom google cloud map styling) it stops rendering tiles and throws error.

when I pass mapId in options

options = {{
   mapId: 'xxxxxxxxxxxxx'
}}

and in LoadScript wrapper

<LoadScript mapIds={['xxxxxxxxxx']}>

it instantly throws error

webgl.js:541 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'indexOf')

I am not sure when this error started happening but I know I didn’t encounter it till recently, now when I go to older commits its happening there also.

I also didnt include mapIds in wrapper before but now when I don’t it throws error

webgl.js:234 Uncaught Error: Not initialized.

Sometimes the map renders completely without issue, but most of the time no tiles are loaded, just markers (in some cases first tile is loaded, when zoomed out no more tiles are loaded. But always there is error:

Uncaught (in promise)

I also tried removing the markers but its the same.

0 Answers0