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
Ashish_Sharma_DEVSFDCAshish_Sharma_DEVSFDC 

Visualforce Map Component does not display business names.

Hi Friends ,

I am using visualforce map components ,its not displaying business names over map . Here is my vf page .
<apex:page standardController="OffersToContacts__c">
    <apex:pageBlock >
        <apex:pageblockSection >
            <apex:map width="1250px"  zoomLevel="16" height="700px" mapType="roadmap" center="{latitude: {!OffersToContacts__c.Offer__r.Venue__r.Geo_Location__Latitude__s}, longitude: {!OffersToContacts__c.Offer__r.Venue__r.Geo_Location__Longitude__s}}">
                <apex:mapMarker position="{latitude: {!OffersToContacts__c.Offer__r.Venue__r.Geo_Location__Latitude__s}, longitude: {!OffersToContacts__c.Offer__r.Venue__r.Geo_Location__Longitude__s}}" icon="{! URLFOR($Resource.VenueLocImage,'images.png') }" />
                <apex:mapMarker position="{latitude: {!OffersToContacts__c.Location__Latitude__s}, longitude: {!OffersToContacts__c.Location__Longitude__s}}" />
               
            </apex:map>
        </apex:pageblockSection>
    </apex:pageBlock>
</apex:page>
Any help would be  much appreciated !
Kiran  KurellaKiran Kurella
Try using title attribute in mapMarker component. If title is not working, then try apex:mapInfoWindow component.

https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_mapInfoWindow.htm