+ Start a Discussion
BB 

How to load multiple markers on google maps using visualforce page

I want to display around 40k markers on the map. I tried like this but maximum is 10 (i read in documentation this is some sort of a limitation).

Here is my code: 
<apex:page standardController="Account" recordSetVar="accounts" >

  <apex:map width="1200px" height="1000px" mapType="roadmap"
    center="42.23  42.23">
        <apex:repeat value="{! accounts }" var="acc">
        <apex:mapMarker title="{! acc.Name }" position="{!acc.BillingLatitude}, {!acc.BillingLongitude},{!acc.BillingCity}, {!acc.Billing_Zip_Postal_Code__c}" />
        </apex:repeat>
  </apex:map>
  </apex:page>

Is there any posibility to do that ? 
Best Answer chosen by B
Dushyant SonwarDushyant Sonwar
You can only add up to 100 mapmarker to a single map , it is a salesforce limitation. If you want to implement for 40K , then you need to purchase google map API and then integrate with your vf pages .
https://cloud.google.com/maps-platform/pricing/sheet/

Hope this helps.

All Answers

Santosh Reddy MaddhuriSantosh Reddy Maddhuri
Hi B.

Follow the below link and try as suggested by Bertrandn and you should be able to achieve what you looking for.

https://developer.salesforce.com/forums/?id=906F0000000g2zZIAQ
 

Hope this helps!.

Regards,
Santosh.
BB
Thx but i already tried that and i could not make it work
Dushyant SonwarDushyant Sonwar
You can only add up to 100 mapmarker to a single map , it is a salesforce limitation. If you want to implement for 40K , then you need to purchase google map API and then integrate with your vf pages .
https://cloud.google.com/maps-platform/pricing/sheet/

Hope this helps.
This was selected as the best answer
BB
Thank you all, i just used leaflet instead Google maps and it solved my problem  partially.