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
Geoff SpozettaGeoff Spozetta 

Apex: Map Configuration


Hi,

I'm trying to create a map object, but everytime I load up the map, it simply looks at the Longitude and Latitude District of Harbin, China. 

Chinese City Naming conventions not withstanding, it would appear I have some sort of configuration error, but I cannot see where:

<apex:page standardController="custom_object__c">
    <apex:pageBlock >
        <apex:map width="600px" height="400px" mapType="roadmap" zoomLevel="17"
        center="{latitude:{!custom_object__c.geolocationfield__Latitude__s},{longitude:{!custom_object__c.geolocationfield__Longitude__s}}">
            <apex:mapMarker title="{!custom_object__c.Name}" position="{latitude:{!custom_object__c.geolocationfield__Latitude__s},{longitude:{!custom_object__c.geolocationfield__Longitude__s}}"/>
        </apex:map>
    </apex:pageBlock>
</apex:page>
 
NagendraNagendra (Salesforce Developers) 
Hi Geoff,

Please check with below link which might help you to accelerate with the above requirement. Kindly mark this post as solved if the information help's so that it gets removed from the unanswered queue and becomes a proper solution which results in helping others who are really in need of it.

Best Regards,
Nagendra.P