title: Disable click behavior of POI markers in Google Maps JS API
body: <p>As of Google Maps API v3.6, maps now include "points of interest", which are gray markers embedded into a map.  When the user clicks on this icon, an InfoWindow appears with information about that business (or park, hospital, etc.)</p>
  
  <p>These can be turned off by setting the Styling.  (See "Style Array Example")</p>
  
  <p><a href="https://code.google.com/apis/maps/documentation/javascript/styling.html" rel="nofollow noreferrer">https://code.google.com/apis/maps/documentation/javascript/styling.html</a></p>
  
  <p>Once they are turned off, the icons, names, and shaded regions (for parks and hospitals) go away.</p>
  
  <p>Before Google Maps API v3.6, there were no icons; only the names and regions.</p>
  
  <p>The question: is there a way to remove the "click icon to open info window" behavior of these points of interest?  I still want to keep the icons, names, and regions; only want to remove the click behavior.</p>
  
  <p>Alternate question: is there a way to download/save the JavaScript of the v3.5 of Google Maps API to store on my server?  At present, v3.5 is working fine for what I need.  In February, Google will no longer provide v3.5 of the code and will instead provide only v3.6, v3.7, v3.8.</p>
  
  <p>Retiring of minor versions of Google Maps API v3, and using the "frozen" version of an API:</p>
  
  <p><a href="https://code.google.com/apis/maps/documentation/javascript/basics.html#Versioning" rel="nofollow noreferrer">https://code.google.com/apis/maps/documentation/javascript/basics.html#Versioning</a></p>
  
  <p><strong>Things I've tried and considered:</strong> Adding an event listener when the map is clicked does not work, because the embedded markers are clicked instead of the map.  Adding "clickable: false" as a property was a shot in the dark, with no result.  Setting "visiblility: off" removes it all, leaving the map with less content.  Setting "visibility: simplified" removes the name of the location, though the onclick behavior is still present.  Putting an invisible DIV overlaying the map might work, though it would remove the ability to pan/zoom/drag the map without increasing complexity.</p>
  
  <p>Setting a style so that featureType: poi, elementType: labels, visibility: off will result in showing the pink/gray/green regions for hospitals/cemeteries/parks, without the marker or name.  It returns more color to the map.</p>