Google Maps Lockerservice Content Security Etc.

  • 1
  • Question
  • Updated 1 year ago
  • Answered
Hello!

When we use Google Maps as an external resource in a Skuid page used in a Lightning page (rather than Visualforce) we end up falling afoul of the various security measures Salesforce activated in the last release about linking to external javascript. Because the script is externally hosted by Google we can't just save it in a static resource or in a page file.

I'm aware this is more of a Salesforce issue than a Skuid issue... But this community is wonderful, and I thought I'd check to see if anyone knew of a solution to this problem as it may be that we're missing something.

Many Thanks!

Louis
Photo of Louis Skelton

Louis Skelton

  • 4,878 Points 4k badge 2x thumb

Posted 1 year ago

  • 1
Photo of Louis Skelton

Louis Skelton

  • 4,878 Points 4k badge 2x thumb
Any takers? :p
Photo of Amy Dewaal

Amy Dewaal, Official Rep

  • 8,200 Points 5k badge 2x thumb
Louis,

I haven't gotten Google Maps to work, but I have gotten Leaflet maps to work. I was able to add the Leaflet source as a static resource (fulfilling the Lightning requirements), pull leaflet.js and leaflet.css into my Skuid page, and then use Javascript to show the location of an account with a marker and popup that showed the address.
Photo of Louis Skelton

Louis Skelton

  • 4,878 Points 4k badge 2x thumb
Amy, thank you so so much... This is amazing! My weekend will be all the more pleasurable for knowing that this is possible! I'll give this a go next week and let you know how I get on.

Thanks again! :)

Have a lovely weekend!

Louis