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
I've tried the mentioned things. The maps work (using KML) with Javascript API if it is shared as public, But it stops working when I make it restricted where I definitely shared with the Service Account email. The thing is if I make a call to Drive API using the Same API Key and list files, I can see that 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