- We have 13,000 Leads with addresses
- SF Maps plots 3724 Leads
- SF Maps returns 1347 bad addresses
- 3724 + 1347 = 5071
- 5,071 - 13,000 = -7,929
So SF Maps isn't reading the majority of the Leads in our Org and I have no explanation as to why.
To test the validity of the addresses, I created a custom object with just lead names and addresses (I called it 'Map Points') and SF Maps plots all of these 13,000 records accurately.
So we know that:
- The Lead addresses are correct and accurate
- The Lead Addresses can be successfully mapped to lat/long and plotted by SF Maps
- There are no limitations to record count that are preventing these Leads from loading
What I've tried:
- Remove Skip Geocode Flag Batch
- Removing the lat/long and geocoding the Leads again
- Creating custom address fields and using those fields to plot
What's even more perplexing is that there are cases where the "Maps Nearby Map" component on the Record Page correctly plots a point, but the SF Maps app does not. This makes no sense, as they're using the exact same data and method. As far as I can tell, SF Maps is randomly choosing not to plot markers for certain records and there doesn't really seem to be a rhyme or reason as to why.
Does anyone have any idea what's going on?
Okay, so I think I figured it out. A couple of notes here for people who are trying to configure SF Maps as well.
- The issue was apparently that the permission group I assigned myself (and our reps) had the setting "Maximum Records to Plot" set to 8,000. Evidently, this setting doesn't actually limit the number of records that SF Maps will plot, it limits the number of records SF Maps will attempt to plot. So if the marker layer should be pulling 20,000 records, it will stop trying to plot the remaining 12,000 after it attempts the first 8,000. I increased this setting to 50,000 and most of the records are showing up now.
- The SF maps documentation says that "Marker Cluster Threshold" controls the minimum number of markers needed to create a cluster, as opposed to displaying markers. If I set this setting to 50 (I've even tested 1,000 and 10,000), it will display clusters as small as 2, even when zooming into the street level. As far as I can tell, this setting does not work.
- When using a boundary layer set to "only show markers inside shape", this setting does not work on mobile and all markers will be displayed. Apparently, this is how boundaries are intended to 'work' 😒
