-2

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

  • I have created the API Key from Google Console Cloud
  • Created a Service Account
  • Shared the private map with that Service Account Email

Unfortunately, it doesn't work even if I share the private maps with the service account I make the map public it does work.

Another thing is that if I make a call to the Drive API using the Same API Key and list files, I can see that my shared My Maps file/KML file is there so the permission definitely applied even though it doesn't work when I try to load that with the Maps API.

Kazi Rahiv
  • 529
  • 3
  • 6

0 Answers0