New pricing changes went into effect on July 16, 2018. For more information, check out the Guide for Existing Users.

Fusion Tables

FusionTablesLayer class

google.maps.FusionTablesLayer class

A FusionTablesLayer allows you to display data from a Google Fusion Table on a map, as a rendered layer. (See https://developers.google.com/fusiontables/ for more information about Fusion Tables).

This class extends MVCObject.

Constructor
FusionTablesLayer
FusionTablesLayer(options)
Parameters: 
A layer that displays data from a Fusion Table.
Methods
getMap
getMap()
Parameters:  None
Return Value:  Map
Returns the map on which this layer is displayed.
setMap
setMap(map)
Parameters: 
Return Value:  None
Renders the layer on the specified map. If map is set to null, the layer will be removed.
setOptions
setOptions(options)
Parameters: 
Return Value:  None
Events
click
function(event)
Arguments: 
This event is fired when a feature in the layer is clicked.

FusionTablesLayerOptions interface

google.maps.FusionTablesLayerOptions interface

This object defines the properties that can be set on a FusionTablesLayer object.

Properties
clickable
Type:  boolean
If true, the layer receives mouse events. Default value is true.
heatmap
Options which define the appearance of the layer as a heatmap.
map
Type:  Map
The map on which to display the layer.
query
Options defining the data to display.
styles
Type:  Array<FusionTablesStyle>
An array of up to 5 style specifications, which control the appearance of features within the layer.
suppressInfoWindows
Type:  boolean
Suppress the rendering of info windows when layer features are clicked.

FusionTablesQuery interface

google.maps.FusionTablesQuery interface

Specifies the data to retrieve from a Fusion Tables.

Properties
from
Type:  string
The ID of the Fusion Tables table to display. This ID can be found in the table's URL, as the value of the dsrcid parameter. Required.
limit
Type:  number
Limit on the number of results returned by the query.
offset
Type:  number
Offset into the sorted results.
orderBy
Type:  string
The method by which to sort the results. Accepts either of:
  • A column name. The column name may be suffixed with ASC or DESC (e.g. col2 DESC) to specify ascending or descending sort.
  • An ST_DISTANCE spatial relationship (sort by distance). A column and the coordinate from which to calculate distance must be passed, for example, orderBy: 'ST_DISTANCE(col1, LATLNG(1.2, 3.4))'.
select
Type:  string
A column, containing geographic features to be displayed on the map. See Fusion Tables Setup in the Maps API documentation for information about valid columns.
where
Type:  string
The SQL predicate to be applied to the layer.

FusionTablesStyle interface

google.maps.FusionTablesStyle interface

Controls the appearance of a set of features within a FusionTablesLayer. Features which match the provided SQL predicate will be styled with the supplied options.

Properties
markerOptions
Options which control the appearance of point features.
polygonOptions
Options which control the appearance of polygons.
polylineOptions
Options which control the appearance of polylines.
where
Type:  string
The SQL predicate to be applied to the layer.

FusionTablesHeatmap interface

google.maps.FusionTablesHeatmap interface

Specifies the appearance for a FusionTablesLayer when rendered as a heatmap.

Properties
enabled
Type:  boolean
If true, render the layer as a heatmap.

FusionTablesMarkerOptions interface

google.maps.FusionTablesMarkerOptions interface

Options which control the appearance of point features in a FusionTablesLayer.

Properties
iconName
Type:  string
The name of a Fusion Tables supported icon

FusionTablesPolygonOptions interface

google.maps.FusionTablesPolygonOptions interface

Options which control the appearance of polygons in a FusionTablesLayer.

Properties
fillColor
Type:  string
The fill color, defined by a six-digit hexadecimal number in RRGGBB format (e.g. #00AAFF).
fillOpacity
Type:  number
The fill opacity between 0.0 and 1.0.
strokeColor
Type:  string
The fill color, defined by a six-digit hexadecimal number in RRGGBB format (e.g. #00AAFF).
strokeOpacity
Type:  number
The stroke opacity between 0.0 and 1.0.
strokeWeight
Type:  number
The stroke width in pixels, between 0 and 10.

FusionTablesPolylineOptions interface

google.maps.FusionTablesPolylineOptions interface

Options which control the appearance of polylines in a FusionTablesLayer.

Properties
strokeColor
Type:  string
The fill color, defined by a six-digit hexadecimal number in RRGGBB format (e.g. #00AAFF).
strokeOpacity
Type:  number
The stroke opacity between 0.0 and 1.0.
strokeWeight
Type:  number
The stroke width in pixels.

FusionTablesMouseEvent interface

google.maps.FusionTablesMouseEvent interface

The properties of a mouse event on a FusionTablesLayer.

Properties
infoWindowHtml
Type:  string
Pre-rendered HTML content, as placed in the infowindow by the default UI.
latLng
Type:  LatLng
The position at which to anchor an infowindow on the clicked feature.
pixelOffset
Type:  Size
The offset to apply to an infowindow anchored on the clicked feature.
row
Type:  Object<FusionTablesCell>
A collection of FusionTablesCell objects, indexed by column name, representing the contents of the table row which included the clicked feature.

FusionTablesCell interface

google.maps.FusionTablesCell interface

Describes a single cell from a Fusion Tables table.

Properties
columnName
Type:  string
The name of the column in which the cell was located.
value
Type:  string
The contents of the cell.

다음에 대한 의견 보내기...

Maps JavaScript API
도움이 필요하시나요? 지원 페이지를 방문하세요.