GoogleLayer is deprecated as of LuciadRIA version 2024.0. It’s recommended to replace all usages with RasterTileSetLayer showing a GoogleMapsTileSetModel.

See Differences between GoogleImageModel, GoogleLayer and GoogleMapsTileSetModel for a high-level overview of the various Google Maps APIs in LuciadRIA.

Hardware-accelerated WebGL maps don’t support Google Maps layers. You can add them, but they won’t be visible.

You can add a Google Map to a LuciadRIA map as a layer. To add a Google Maps layer, create a new instance of a luciad.view.google.GoogleLayer and add it to the Map. You can use the mapType property to select the Google Map type you want to visualize. See the reference documentation for more details.

Program: Creating a Google Layer and adding it to the map
const googlelayer = new GoogleLayer({
  mapType: "hybrid"
});
map.layerTree.addChild(googlelayer);