You need to sign in to do that
Don't have an account?
Mapping multiple accounts
We have created an Object called "Markets" following the standard MSA codes. Within each market, we have several accounts. I have had success mapping single accounts using a Visual Force page, but now I am looking to map multiple accounts within an MSA zone. Has anyone come up with a way to map multiple points in Visual Force? I am trying to avoid pay apps like Geopointe or MapAnything. Thanks.
As this post is answered in the success community as below
- Create a multiple marker map (try saying that fast 3 times) on a custom object using a Visualforce page and a controller extension (to filter the data). Lessons learned:
- The Summer '15 upgrade (allowing mapping of multiple locations) is a godsend, but if you have more than 10 locations to be mapped, you must use latitude and longitude values rather than address Geolocation information, as SF restricts the number of Geolocation lookups to 10 per map (and that includes one for the location center)
- You do not have to use the standard orange marker for your locations; you can create a static resource with your own color (or shape!) of marker, then reference the marker in the VF code.
- You can "beef up" the marker to include various information which appears when a marker is clicked
- If you do use the "lat/long" option, MAKE SURE that all locations to be rendered on the map have lat/long data; otherwise you will find your Texas map centered in Saudi Arabia, Russia or China!
- If planning to use the map on Salesforce1:
- Check the "Available for Salesforce mobile apps and Lightning Pages" on the VP page
- Make sure VF page security is set so all profiles that need access have access
- Determine if you are bolting the VF map onto another VF page. If so, your users will experience "double clicking" to get to the map details, as the first "click" opens the VF map in a new window. If possible, bake the VF map into the existing VF page code
- It is some work, but the solution does save the per user/per month cost associated with the AppExchange solutions. It is also a great way to learn the underpinnings of Visualforce and Apex if you have the time and inclination.
Please mark this post as solved so that it gets removed from the unasnswered queue which results in helping others who are really in need of it.Best Regards,
Nagendra.P
All Answers
As this post is answered in the success community as below
- Create a multiple marker map (try saying that fast 3 times) on a custom object using a Visualforce page and a controller extension (to filter the data). Lessons learned:
- The Summer '15 upgrade (allowing mapping of multiple locations) is a godsend, but if you have more than 10 locations to be mapped, you must use latitude and longitude values rather than address Geolocation information, as SF restricts the number of Geolocation lookups to 10 per map (and that includes one for the location center)
- You do not have to use the standard orange marker for your locations; you can create a static resource with your own color (or shape!) of marker, then reference the marker in the VF code.
- You can "beef up" the marker to include various information which appears when a marker is clicked
- If you do use the "lat/long" option, MAKE SURE that all locations to be rendered on the map have lat/long data; otherwise you will find your Texas map centered in Saudi Arabia, Russia or China!
- If planning to use the map on Salesforce1:
- Check the "Available for Salesforce mobile apps and Lightning Pages" on the VP page
- Make sure VF page security is set so all profiles that need access have access
- Determine if you are bolting the VF map onto another VF page. If so, your users will experience "double clicking" to get to the map details, as the first "click" opens the VF map in a new window. If possible, bake the VF map into the existing VF page code
- It is some work, but the solution does save the per user/per month cost associated with the AppExchange solutions. It is also a great way to learn the underpinnings of Visualforce and Apex if you have the time and inclination.
Please mark this post as solved so that it gets removed from the unasnswered queue which results in helping others who are really in need of it.Best Regards,
Nagendra.P