Search code examples
javascriptgoogle-mapsgoogle-fusion-tables

Fusion Tables Layer without markers & infowindows


I'm using Fusion Tables Layer to color in all the countries of the world. Unfortunately there are also markers. And when I click on a country a info window is shown.

I only want the polygons to color the countries, not the markers & infowindows. How can I prevent those from showing.

I have used the layeroption: 'suppressInfoWindow: true', but this does not seem to work.

I have created a codepen example
My fusion table can be found here

var layer = new google.maps.FusionTablesLayer({
  map: map,
  query: {
    select: '\'geometry\'',
    from: '1czcJKrnxMfRHNlHcMd1C0OjhprGb2pxNS8YjNUvr'
  },
  styles: [{
    polygonOptions: {
      fillColor: '#FF0000',
      fillOpacity: 1,
      strokeOpacity: '0',
      strokeWeight: '0'
    }
  }],
  suppressInfoWindow: true
});

Solution

  • You have a typo. suppressInfoWindow: true should be suppressInfoWindows: true