1

google.maps.FusionTablesLayer accepts templateId and styleId parameters in its constructor. The question is: how to extract these values from the table itself?

The need comes from wanting to use the marker icon settings and the infowindow settings configured on the fusion table.

Murukan
  • 189
  • 1
  • 4
  • 15
  • possible duplicate of [Customizing Info Window in FusionTableMapLayer](http://stackoverflow.com/questions/37011454/customizing-info-window-in-fusiontablemaplayer) – geocodezip May 11 '17 at 12:16
  • possible duplicate of [iconStyler for Fusion Tables (Google Maps) won't pull column data](http://stackoverflow.com/questions/22264038/iconstyler-for-fusion-tables-google-maps-wont-pull-column-data) – geocodezip May 11 '17 at 12:17

2 Answers2

3

One can get the templateId and styleId from the fusion table by going to the Map tab -> Publish -> Look in any of the two generated urls for parameters tmplt (this is the templateId) and y (this is the styleId)

Resource: Fusion Tables Example

If anyone has a more elegant way to obtain these ids, please leave a comment.

Happy coding!

Murukan
  • 189
  • 1
  • 4
  • 15
0

There are APIs for templates and styles if you want to get at these values programmatically.

Rod McChesney
  • 681
  • 4
  • 6
  • In my case, the style and template were already set on the fusion table, so they were preset so to speak. – Murukan May 12 '17 at 04:09