I'm trying to access restricted Google My Maps using Maps JavaScript API.
The map is shared on Drive with restricted access for users.
For accessing the restricted map through Maps JavaScript API
Unfortunately, it doesn't work even if I share the private maps with the service account I make the map public it does work.
One thing is if I make a call to Drive API using the Same API Key and list files, I can see that the shared My Maps is there so the permission definitely applied even though it doesn't work when I try to load that with the Maps API using the KML link