function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Pramod Vasudeva Murthy 14Pramod Vasudeva Murthy 14 

CurrentGeo Location in google map via APIs in vfp page

Hi All,

I am trying to create a Route map in Visualforce page. I am embedding vfp inside a lightning component as an iframe because of security reasons.

I am tryign to fetch current location using google map APIs, but unable to get them because these will not work in an iframe. Here is a link (https://sites.google.com/a/chromium.org/dev/Home/chromium-security/deprecating-permissions-in-cross-origin-iframes) supporting my argument.

Since, I have vfp inside lightning component I am thinking to pass current location from cmp. I am not sure if this is a good idea.

If there is anyway to bypass this or change my approach please let me know.

Any help is appreciated,
Pramod V
Best Answer chosen by Pramod Vasudeva Murthy 14
Pramod Vasudeva Murthy 14Pramod Vasudeva Murthy 14
I achieved this using VFP and Google map API, if anyone interested ping me or update this thread.

~VIP