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
kfkaalkfkaal 

Google maps in VF field

I have a calculated field that calls a google maps image and displys it. It works on a standard page.

 

This is the formula:

HYPERLINK("http://maps.google.com?q=" & Primary_Street_1__c & "%20" & Primary_City__r.Name & "%20" & Primary_State__c & "%20" & Primary_Postal_Code__c & "%20" & Primary_Country__c , IMAGE("/servlet/servlet.FileDownload?file=01530000001hbwB", "Google Map"))

 I try to display that on a VF page and tried all typs of output tags. It allways displays:

<a href="http://maps.google.com?q=XXStreet 6a%20Lakeside%20%2078315%20XXXXX" target="_blank"><img src="/servlet/servlet.FileDownload?file=01530000001hbwB" alt="Google Map" border="0"/></a>

 (Addressdata are taken out here, but work in real life example)

Which tag would I need to get this output as an image (image tag did not work)?

 

 

bob_buzzardbob_buzzard

So is the problem that you are seeing what should be HTML markup appear as text?

 

Have you tried using an outputfield outputtext with the escape attribute set to false?  This stops HTML being converted to text.

 

Something like:

 

 

<apex:outputText value="{!obj.Formula_Field__c}" escape="false"/>