• Bertrand Leymarios
  • 0 Points
  • Member since 2015

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
  • 1
I'm trying to plot more than 10 apex:mapMarker on a visualforce page using JSON object or apex Map object for the 'position' attribute, but the map limits the number of map markers to be not more than 10.

As per Visualforce Developer Guide link above, there should not be limit on mapMarkers when i'm using position values that don't require geocoding. 

Loading transportLocationContainerList with 2 entries
Loading shipmentTrackingContainerList with 10 entries

VF page:
<apex:pageBlock mode="maindetail">
    <apex:map width="100%" height="500px" mapType="roadmap" scrollBasedZooming="true" showOnlyActiveInfoWindow="true">
        <apex:repeat value="{!transportLocationContainerList}" var="transportLocationContainer">
            <apex:mapMarker title="{!transportLocationContainer.TransportLocation.Name}" position="{!transportLocationContainer.GeolocationMap}">
        <apex:repeat value="{!shipmentTrackingContainerList}" var="shipmentTrackingContainer">
            <apex:mapMarker title="{!shipmentTrackingContainer.ShipmentTracking.Name}" position="{!shipmentTrackingContainer.GeolocationMap}">

Could you please explain why the geocoding limit is exceeding and how to overcome the limit?