Skip to content Skip to sidebar Skip to footer

Plotting "points" On Google Maps Using Javascript Api

I'm currently loading an extensive set of points (latitude, longitude pairs) into a Google Map. My problem is that Google Maps plots these points as markers (the default kind), whi

Solution 1:

A quick and dirty example (took something from the documentation and modified it):

map.data.setStyle(function(feature) {
  return/** @type {google.maps.Data.StyleOptions} */({
    icon: "https://maps.gstatic.com/intl/en_us/mapfiles/markers2/measle.png"
  });
});

working example

Post a Comment for "Plotting "points" On Google Maps Using Javascript Api"