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

Property Type Description
mapType “terrain” | “satellite” | “roadmap” | undefined The map type of the Google map imagery. Valid options are satellite, terrain, and roadmap.
language string | undefined An IETF language tag that specifies the language used to display information on the tiles.
region string | undefined A Common Locale Data Repository region identifier (two uppercase letters) that represents the physical location of the user.
overlayLayerType “layerRoadmap” | “layerStreetview” | “layerTraffic” | undefined 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 | undefined The ellipsoid. If not specified, the default ellipsoid is used.
minimumLevel number | undefined The minimum level-of-detail supported by the imagery provider.
maximumLevel number | undefined The maximum level-of-detail supported by the imagery provider.
rectangle Rectangle | undefined The rectangle, in radians, covered by the image.
credit string | Credit | undefined A credit for the data source, which is displayed on the canvas.

N/A

Property Type Description
children ReactNode
onReady ((imageryProvider: Google2DImageryProvider) => void) | undefined Calls when the imagery provider is successfully created.
assetId string | undefined The Ion asset ID to load from Cesium Ion. Alternative to using mapType/key.
accessToken string | undefined The access token for Cesium Ion. Only needed if assetId is provided and different from default.
key string | undefined The API key to access Google 2D Tiles. If not provided, uses GoogleMaps.defaultApiKey.