Timeline for How do you get the lat/long of an apex:mapMarker that has been geocoded in Visualforce?
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 12, 2015 at 16:34 | vote | accept | Christian Carter | ||
Aug 27, 2015 at 22:43 | history | edited | Daniel Ballinger | CC BY-SA 3.0 |
added 321 characters in body
|
Jul 22, 2015 at 2:09 | comment | added | Daniel Ballinger | @ChristianCarter, Yes, for custom addresses you are likely going to need to use your own third party to geocode the addresses. Makes me wonder if you could create a temporary Lead with the standard address you want to geocode. Then once you have the lat/long, delete the lead. | |
Jul 21, 2015 at 14:58 | comment | added | Christian Carter | @SarojBera This looks good, but I can't figure out how to execute any javascript in the map iframe. It runs from a different domain than my visualforce and a different domain from Aloha. Have any ideas in a way that doesn't require any changes to the iframe? | |
Jul 21, 2015 at 8:38 | comment | added | Saroj Bera | @ChristianCarter if you are facing issues with cross domain communication you can use PortHole JS framework. This small JS library is intended to resolve cross domain issues. | |
Jul 21, 2015 at 3:27 | comment | added | Christian Carter | Hi Daniel, standard addresses are indeed geocoded, I'm looking at custom addresses unfortunately. I've tried to reach through the JS to get to the lat/long (indeed, I actually found where it is stored in Chrome dev tools!), but due to same origin policy and Visualforce iFrame-ing, I cannot. I think I'm going to have to go 3rd party. | |
Jul 21, 2015 at 0:33 | history | answered | Daniel Ballinger | CC BY-SA 3.0 |