Google Fusion Tables API

Style: update

Requires authorization

Updates an existing style. Try it now.

Request

HTTP request

PUT https://www.googleapis.com/fusiontables/v1/tables/tableId/styles/styleId

Parameters

Parameter name Value Description
Path parameters
styleId integer Identifier (within a table) for the style being updated.
tableId string Encrypted unique alphanumeric identifier for the table.

Authorization

This request requires authorization with at least one of the following scopes (read more about authentication and authorization).

Scope
https://www.googleapis.com/auth/fusiontables

Request body

In the request body, supply a Style resource with the following properties:

Property name Value Description Notes
Optional Properties
markerOptions.iconName string Name of the icon. Use values defined in the Icon name table. writable
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.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.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.gradient.colors[] list Array with two or more colors. writable
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.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.gradient.colors[] list Array with two or more colors. writable
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.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.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.strokeColor string Color of the line in hexadecimal notation (#RRGGBB). writable
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.gradient.colors[] list Array with two or more colors. writable
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.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.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

Response

If successful, this method returns a Style resource in the response body.

Try it!

Use the APIs Explorer below to call this method on live data and see the response. Alternatively, try the standalone Explorer.

Authentication required

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

Signing you in...

Google Developers needs your permission to do that.