You need to sign in to do that
Don't have an account?
Geoff Spozetta
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>
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>
Please check with below link which might help you to accelerate with the above requirement.
- https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_maps_basic.htm
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