I’d like to display (and work with) a Google Maps API map in an extension popup. I added https://maps.googleapis.com and https://maps.gstatic.com/ to the content_security_policy, but apparently Maps uses inline evals (!) so this just throws errors.
I also tried to create a map page in my extension and pull it in as an iframe but it appears the Maps API detects that and just shows an image.
Any hints how to get a Google Maps API map to show in a popup?
Google has released a sandboxing mechanism for dealing with “unsafe” JS. See it here: http://code.google.com/chrome/extensions/trunk/sandboxingEval.html
It works in Chrome Beta and at least in earlier coding seems to cover what I need.
Kinda sad you need to sandbox Google’s own code, but there it is.