Google Fusion Tables API

Style

Styles are used to determine how data from Fusion Tables should appear on a map. A style may define either a fixed value for appearance of a map feature (for example, "iconName": small_green) or a function to determine the appearance based on data within the table (for example, polygonOptions.fillColorStyler.gradient). 

To better understand the available style options, please see Map styles in the Fusion Tables help center. For more context on using these styles via the Fusion Tables API, see Working with styles.

For a list of methods for this resource, see the end of this page.

Resource representations

Representation of a map style.

{
  "kind": "fusiontables#styleSetting",
  "tableId": string,
  "styleId": integer,
  "name": string,
  "markerOptions": {
    "iconName": string,
    "iconStyler": {
      "kind": string,
      "columnName": string,
      "gradient": {
        "min": double,
        "max": double,
        "colors": [
          {
            "color": string,
            "opacity": double
          }
        ]
      },
      "buckets": [
        {
          "min": double,
          "max": double,
          "color": string,
          "opacity": double,
          "icon": string,
          "weight": integer
        }
      ]
    }
  },
  "polylineOptions": {
    "strokeColor": string,
    "strokeOpacity": double,
    "strokeColorStyler": {
      "kind": string,
      "columnName": string,
      "gradient": {
        "min": double,
        "max": double,
        "colors": [
          {
            "color": string,
            "opacity": double
          }
        ]
      },
      "buckets": [
        {
          "min": double,
          "max": double,
          "color": string,
          "opacity": double,
          "icon": string,
          "weight": integer
        }
      ]
    },
    "strokeWeight": integer,
    "strokeWeightStyler": {
      "kind": string,
      "columnName": string,
      "gradient": {
        "min": double,
        "max": double,
        "colors": [
          {
            "color": string,
            "opacity": double
          }
        ]
      },
      "buckets": [
        {
          "min": double,
          "max": double,
          "color": string,
          "opacity": double,
          "icon": string,
          "weight": integer
        }
      ]
    }
  },
  "polygonOptions": {
    "strokeColor": string,
    "strokeOpacity": double,
    "strokeColorStyler": {
      "kind": string,
      "columnName": string,
      "gradient": {
        "min": double,
        "max": double,
        "colors": [
          {
            "color": string,
            "opacity": double
          }
        ]
      },
      "buckets": [
        {
          "min": double,
          "max": double,
          "color": string,
          "opacity": double,
          "icon": string,
          "weight": integer
        }
      ]
    },
    "strokeWeight": integer,
    "strokeWeightStyler": {
      "kind": string,
      "columnName": string,
      "gradient": {
        "min": double,
        "max": double,
        "colors": [
          {
            "color": string,
            "opacity": double
          }
        ]
      },
      "buckets": [
        {
          "min": double,
          "max": double,
          "color": string,
          "opacity": double,
          "icon": string,
          "weight": integer
        }
      ]
    },
    "fillColor": string,
    "fillOpacity": double,
    "fillColorStyler": {
      "kind": string,
      "columnName": string,
      "gradient": {
        "min": double,
        "max": double,
        "colors": [
          {
            "color": string,
            "opacity": double
          }
        ]
      },
      "buckets": [
        {
          "min": double,
          "max": double,
          "color": string,
          "opacity": double,
          "icon": string,
          "weight": integer
        }
      ]
    }
  }
}
Property name Value Description Notes
kind string The kind of item this is. For styles, this is always fusiontables#styleSetting.
markerOptions nested object Style definition for points in the table.
markerOptions.iconName string Name of the icon. Use values defined in the Icon name table. writable
markerOptions.iconStyler nested object Column or a bucket value from which the icon name is to be determined.
markerOptions.iconStyler.buckets[] list Bucket function that assigns the marker icon based on the range a column value falls into. writable
markerOptions.iconStyler.buckets[].icon string Icon name used for a point. writable
markerOptions.iconStyler.buckets[].max double Maximum value in the selected column for a row to be styled according to the icon. writable
markerOptions.iconStyler.buckets[].min double Minimum value in the selected column for a row to be styled according to the icon. writable
markerOptions.iconStyler.columnName string Name of the column whose value is used in the style.
markerOptions.iconStyler.kind string Stylers can be one of two kinds: "fusiontables#fromColumn" if the column value is to be used as is, in other words, the column values have icon names; or "fusiontables#buckets" if the styling is to be based on the bucket into which the column value falls.

Acceptable values are:
  • "fusiontables#buckets":
  • "fusiontables#fromColumn":
  • "fusiontables#gradient":
writable
name string Optional name for the style. writable
polygonOptions nested object Style definition for polygons in the table.
polygonOptions.fillColor string Color of the interior of the polygon in hexadecimal notation (#RRGGBB).
polygonOptions.fillColorStyler nested object Column-value, gradient, or bucket styler that is used to determine the interior color and opacity of the polygon.
polygonOptions.fillColorStyler.buckets[] list Bucket function that assigns a polygon fill color based on the range a column value falls into. writable
polygonOptions.fillColorStyler.buckets[].color string Color of the interior of a polygon in hexadecimal notation (#RRGGBB). writable
polygonOptions.fillColorStyler.buckets[].max double Maximum value in the selected column for a row to be styled according to the bucket color and/or opacity. writable
polygonOptions.fillColorStyler.buckets[].min double Minimum value in the selected column for a row to be styled according to the bucket color and/or opacity. writable
polygonOptions.fillColorStyler.buckets[].opacity double Opacity of the color: 0.0 (transparent) to 1.0 (opaque). writable
polygonOptions.fillColorStyler.columnName string Name of the column whose value is used in the style.
polygonOptions.fillColorStyler.gradient object Gradient function that interpolates a range of colors based on column value.
polygonOptions.fillColorStyler.gradient.colors[] list Array with two or more colors. writable
polygonOptions.fillColorStyler.gradient.colors[].color string Color in hexadecimal notation (#RRGGBB).
polygonOptions.fillColorStyler.gradient.colors[].opacity double Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
polygonOptions.fillColorStyler.gradient.max double Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. writable
polygonOptions.fillColorStyler.gradient.min double Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. writable
polygonOptions.fillColorStyler.kind string Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, in other words, the column values can have colors in hexadecimal notation (#RRGGBB); "fusiontables#gradient" if the styling of the polygon fill color is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to be based on the bucket into which the column value falls.

Acceptable values are:
  • "fusiontables#buckets":
  • "fusiontables#fromColumn":
  • "fusiontables#gradient":
writable
polygonOptions.fillOpacity double Opacity of the interior of the polygon: 0.0 (transparent) to 1.0 (opaque).
polygonOptions.strokeColor string Color of the polygon border in hexadecimal notation (#RRGGBB).
polygonOptions.strokeColorStyler nested object Column-value, gradient, or buckets styler that is used to determine the border color and opacity.
polygonOptions.strokeColorStyler.buckets[] list Bucket function that assigns a polygon border color based on the range a column value falls into. writable
polygonOptions.strokeColorStyler.buckets[].color string Color of the polygon border in hexadecimal notation (#RRGGBB). writable
polygonOptions.strokeColorStyler.buckets[].max double Maximum value in the selected column for a row to be styled according to the bucket color and/or opacity. writable
polygonOptions.strokeColorStyler.buckets[].min double Minimum value in the selected column for a row to be styled according to the bucket color and/or opacity. writable
polygonOptions.strokeColorStyler.buckets[].opacity double Opacity of the color: 0.0 (transparent) to 1.0 (opaque). writable
polygonOptions.strokeColorStyler.columnName string Name of the column whose value is used in the style.
polygonOptions.strokeColorStyler.gradient object Gradient function that interpolates a range of colors based on column value.
polygonOptions.strokeColorStyler.gradient.colors[] list Array with two or more colors. writable
polygonOptions.strokeColorStyler.gradient.colors[].color string Color in hexadecimal notation (#RRGGBB).
polygonOptions.strokeColorStyler.gradient.colors[].opacity double Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
polygonOptions.strokeColorStyler.gradient.max double Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. writable
polygonOptions.strokeColorStyler.gradient.min double Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. writable
polygonOptions.strokeColorStyler.kind string Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, in other words, the column values have colors in hexadecimal notation (#RRGGBB); "fusiontables#gradient" if the styling of the polygon border color is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to be based on the bucket into which the column value falls.

Acceptable values are:
  • "fusiontables#buckets":
  • "fusiontables#fromColumn":
  • "fusiontables#gradient":
writable
polygonOptions.strokeOpacity double Opacity of the polygon border: 0.0 (transparent) to 1.0 (opaque).
polygonOptions.strokeWeight integer Width of the polyon border in pixels.
polygonOptions.strokeWeightStyler nested object Column-value or bucket styler that is used to determine the width of the polygon border.
polygonOptions.strokeWeightStyler.buckets[] list Bucket function that assigns a border weight based on the range a column value falls into. writable
polygonOptions.strokeWeightStyler.buckets[].max double Maximum value in the selected column for a row to be styled according to the weight. writable
polygonOptions.strokeWeightStyler.buckets[].min double Minimum value in the selected column for a row to be styled according to the weight. writable
polygonOptions.strokeWeightStyler.buckets[].weight integer Width of a line (in pixels). writable
polygonOptions.strokeWeightStyler.columnName string Name of the column whose value is used in the style.
polygonOptions.strokeWeightStyler.kind string Stylers can be one of two kinds: "fusiontables#fromColumn" if the column value is to be used as is, in other words, the column values have integer line widths; or "fusiontables#buckets" if the styling is to be based on the bucket into which the column value falls.

Acceptable values are:
  • "fusiontables#buckets":
  • "fusiontables#fromColumn":
  • "fusiontables#gradient":
writable
polylineOptions nested object Style definition for lines in the table.
polylineOptions.strokeColor string Color of the line in hexadecimal notation (#RRGGBB). writable
polylineOptions.strokeColorStyler nested object Column-value, gradient, or buckets styler that is used to determine the line color and opacity.
polylineOptions.strokeColorStyler.buckets[] list Bucket function that assigns a line color based on the range a column value falls into. writable
polylineOptions.strokeColorStyler.buckets[].color string Color of the line in hexadecimal notation (#RRGGBB). writable
polylineOptions.strokeColorStyler.buckets[].max double Maximum value in the selected column for a row to be styled according to the bucket color and/or opacity. writable
polylineOptions.strokeColorStyler.buckets[].min double Minimum value in the selected column for a row to be styled according to the bucket color and/or opacity. writable
polylineOptions.strokeColorStyler.buckets[].opacity double Opacity of the color: 0.0 (transparent) to 1.0 (opaque). writable
polylineOptions.strokeColorStyler.columnName string Name of the column whose value is used in the style.
polylineOptions.strokeColorStyler.gradient object Gradient function that interpolates a range of colors based on column value.
polylineOptions.strokeColorStyler.gradient.colors[] list Array with two or more colors. writable
polylineOptions.strokeColorStyler.gradient.colors[].color string Color in hexadecimal notation (#RRGGBB).
polylineOptions.strokeColorStyler.gradient.colors[].opacity double Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
polylineOptions.strokeColorStyler.gradient.max double Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1]. writable
polylineOptions.strokeColorStyler.gradient.min double Lower-end of the interpolation range: rows with this value will be assigned to colors[0]. writable
polylineOptions.strokeColorStyler.kind string Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, in other words, the column values have colors in #RRGGBBAA format; "fusiontables#gradient" if the styling of the line color is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to be based on the bucket into which the column value falls.

Acceptable values are:
  • "fusiontables#buckets":
  • "fusiontables#fromColumn":
  • "fusiontables#gradient":
writable
polylineOptions.strokeOpacity double Opacity of the line : 0.0 (transparent) to 1.0 (opaque). writable
polylineOptions.strokeWeight integer Width of the line in pixels. writable
polylineOptions.strokeWeightStyler nested object Column-value or bucket styler that is used to determine the width of the line.
polylineOptions.strokeWeightStyler.buckets[] list Bucket function that assigns a line weight based on the range a column value falls into. writable
polylineOptions.strokeWeightStyler.buckets[].max double Maximum value in the selected column for a row to be styled according to the weight. writable
polylineOptions.strokeWeightStyler.buckets[].min double Minimum value in the selected column for a row to be styled according to the weight. writable
polylineOptions.strokeWeightStyler.buckets[].weight integer Width of a line (in pixels). writable
polylineOptions.strokeWeightStyler.columnName string Name of the column whose value is used in the style.
polylineOptions.strokeWeightStyler.kind string Stylers can be one of two kinds: "fusiontables#fromColumn" if the column value is to be used as is, in other words, the column values have line widths; or "fusiontables#buckets" if the styling is to be based on the bucket into which the column value falls.

Acceptable values are:
  • "fusiontables#buckets":
  • "fusiontables#fromColumn":
  • "fusiontables#gradient":
writable
styleId integer Identifier for the style.
tableId string Identifier for the table.

Methods

delete
Deletes a style.
get
Gets a specific style from a given table.
insert
Adds a new style for the table.
list
Retrieves a list of styles from a given table.
patch
Updates an existing style. This method supports patch semantics.
update
Updates an existing style.

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.