Overcoming the 400 data points limit when drawing points on a map

16 views
Skip to first unread message

Martin Underwood

unread,
Apr 13, 2017, 6:08:03 AM4/13/17
to Google Visualization API
I'm trying devise a simple way of displaying GPX tracks on a Google map, partly as an exercise to get to know Google Charts, since I'm sure there are already tools that do it.

I notice that https://developers.google.com/chart/interactive/docs/gallery/map#data-format says that you can display a maximum of 400 points on a map. Has anyone found a way of exceeding this limit to cope with tracks that have more than 400 points? In my very simple hard-coded example, I simply edited the GPX file so as to include only those points with timestamps of hh:mm:00, hh:mm:15, hh:mm:30 and hh:mm:45 as a crude means of data-reduction :-)

I wonder how I tell Google Maps not to display a marker at each point and only to display the lines between the points. Maybe by setting null markers (ie non-existent path) in

var options = {
  icons: {
    default: {
      normal:   '/path/to/marker/image',
      selected: '/path/to/marker/image'
    },
    customMarker: {
      normal:   '/path/to/other/marker/image',
      selected: '/path/to/other/marker/image'
    }
  }
};
 
map.htm
Reply all
Reply to author
Forward
0 new messages