kim_purcell
Kilo Explorer

If you are trying to configure your map pages, you may struggle with map markers not showing up on your Google Maps. Map pages on your instance ideally enable you to graphically display data on a Google Map based on the location and link these to your records. These can be easily generated with basic JavaScript; however, your Google Maps API (v.3) may sadly leave you with one lonely marker on your map:

Screen Shot 2014-11-19 at 12.26.13 PM.JPG

Google map markers are a type of overlay that are designed to be interactive. In order to display all of your markers that link to your records, you can add a line of script to the Map Page table:

  1. In the navigation filter, enter Map Pages.
  2. Select the type of map.
  3. Add this line to the script in the while loop:

    item.marker_label = "<img src='https://maps.google.com/mapfiles/marker.png'/>";

    (If you have more than one while loop for map icons, add the line to all of them.)

Map page image.png

You should now be able to view all of your markers on the Google Map:

Screen Shot 2014-11-19 at 12.00.05 PM.JPG

 

For more information, see:

Google Maps Support

Google maps API 3.14 deprecated: only one marker is placed on map

Google maps script is not loading all markers

List of Google Maps icons

Google Maps request should specify API version

1 Comment