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
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. 
Status urduStatus urdu
We Provide you all kinds of status in Urdu Attitude Status (https://statusinurdu.com/2020/09/30/attitude-status-in-urdu-attitude-quotes-in-urdu-attitude-whatsapp-status/), Sad Status, Breakup Status, Friendship Status, Whatsapp Status, Etc Which helps you to describe your feelings. Hope you like it, support us by sharing.https://statusinurdu.com/