elksie5000 elksie5000 - 1 month ago 16
Javascript Question

Google maps styling query

I've played around with the FusionTablesLayer Wizard (http://gmaps-samples.googlecode.com/svn/trunk/fusiontables/fusiontableslayer_builder.html) to create a map of wind turbines in North Devon.

http://www.thisisnorthdevon.co.uk/images/localpeople/ugc-images/275834/binaries/WindTurbines.html

But there are two problems.

The first is that the styling that I'd created within the Fusion Table layers has not carried through. Is there a switch to force the layer to take on this styling?

The second is that I don't want the shapefile layer to be clickable. How do I turn this off?

Answer

But there are two problems.

  • The first is that the styling that I'd created within the Fusion Table layers has not carried through. Is there a switch to force the layer to take on this styling?

Not sure what styling you are asking about. Is it styling defined in the FusionTable? By the FusionTables Wizard? It looks like you may be missing the application of the styles to the map this or the equivalent:

 map.setOptions({styles: styles});

You might want to review the documentation on styling the map

  • The second is that I don't want the shapefile layer to be clickable. How do I turn this off?

To disable clicks on that FusionTablesLayer, use the suppressInfoWindows option when you construct it.

your page with infowindows suppressed on the polygon layer and styling, note that your html is invalid (no body).