Google2DImageryProvider
Google2DImageryProvider provides 2D satellite imagery from Google Maps tile services.
This component loads Google 2D imagery asynchronously and can be used with the ImageryLayer component. Google 2D Tiles can only be used with the Google geocoder.
Note: Requires Google API key. See Google Maps documentation for details.
- Cesium element: Google2DImageryProvider
- Example: Google2DImageryProvider
Availability
Inside ImageryLayer component.
Properties
Cesium properties
N/A
Cesium read-only properties
| Property | Type | Description |
|---|---|---|
| mapType | "terrain" | "satellite" | "roadmap" | The map type of the Google map imagery. Valid options are satellite, terrain, and roadmap. |
| language | string | An IETF language tag that specifies the language used to display information on the tiles. |
| region | string | A Common Locale Data Repository region identifier (two uppercase letters) that represents the physical location of the user. |
| overlayLayerType | "layerRoadmap" | "layerStreetview" | "layerTraffic" | Returns a transparent overlay map with the specified layerType. |
| styles | any | An array of JSON style objects that specify the appearance and detail level of map features. |
| ellipsoid | Ellipsoid | The ellipsoid. If not specified, the default ellipsoid is used. |
| minimumLevel | number | The minimum level-of-detail supported by the imagery provider. |
| maximumLevel | number | The maximum level-of-detail supported by the imagery provider. |
| rectangle | Rectangle | The rectangle, in radians, covered by the image. |
| credit | string | Credit | A credit for the data source, which is displayed on the canvas. |
Cesium events
N/A
Other properties
| Property | Type | Description |
|---|---|---|
| children | ReactNode | |
| onReady | (imageryProvider: Google2DImageryProvider) => void | Calls when the imagery provider is successfully created. |
| assetId | string | The Ion asset ID to load from Cesium Ion. Alternative to using mapType/key. |
| accessToken | string | The access token for Cesium Ion. Only needed if assetId is provided and different from default. |
| key | string | The API key to access Google 2D Tiles. If not provided, uses GoogleMaps.defaultApiKey. |