See Differences between GoogleImageModel and GoogleLayer for a high-level overview of the different 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.
const googlelayer = new GoogleLayer({
mapType: "hybrid"
});
map.layerTree.addChild(googlelayer);