Skip to 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.

Inside ImageryLayer component.

N/A

PropertyTypeDescription
mapType”terrain” | “satellite” | “roadmap” | undefinedThe map type of the Google map imagery. Valid options are satellite, terrain, and roadmap.
languagestring | undefinedAn IETF language tag that specifies the language used to display information on the tiles.
regionstring | undefinedA Common Locale Data Repository region identifier (two uppercase letters) that represents the physical location of the user.
overlayLayerType”layerRoadmap” | “layerStreetview” | “layerTraffic” | undefinedReturns a transparent overlay map with the specified layerType.
stylesanyAn array of JSON style objects that specify the appearance and detail level of map features.
ellipsoidEllipsoid | undefinedThe ellipsoid. If not specified, the default ellipsoid is used.
minimumLevelnumber | undefinedThe minimum level-of-detail supported by the imagery provider.
maximumLevelnumber | undefinedThe maximum level-of-detail supported by the imagery provider.
rectangleRectangle | undefinedThe rectangle, in radians, covered by the image.
creditstring | Credit | undefinedA credit for the data source, which is displayed on the canvas.

N/A

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