Skip to main content

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.

Availability

Inside ImageryLayer component.

Properties

Cesium properties

N/A

Cesium read-only properties

PropertyTypeDescription
mapType"terrain" | "satellite" | "roadmap"The map type of the Google map imagery. Valid options are satellite, terrain, and roadmap.
languagestringAn IETF language tag that specifies the language used to display information on the tiles.
regionstringA 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.
stylesanyAn array of JSON style objects that specify the appearance and detail level of map features.
ellipsoidEllipsoidThe ellipsoid. If not specified, the default ellipsoid is used.
minimumLevelnumberThe minimum level-of-detail supported by the imagery provider.
maximumLevelnumberThe maximum level-of-detail supported by the imagery provider.
rectangleRectangleThe rectangle, in radians, covered by the image.
creditstring | CreditA credit for the data source, which is displayed on the canvas.

Cesium events

N/A

Other properties

PropertyTypeDescription
childrenReactNode
onReady(imageryProvider: Google2DImageryProvider) => voidCalls when the imagery provider is successfully created.
assetIdstringThe Ion asset ID to load from Cesium Ion. Alternative to using mapType/key.
accessTokenstringThe access token for Cesium Ion. Only needed if assetId is provided and different from default.
keystringThe API key to access Google 2D Tiles. If not provided, uses GoogleMaps.defaultApiKey.