'Procedurally set Globe view in a Google Map loaded from Java

When I load this web page from Java in Chrome (Version 99.0.4844.74), I get a globe:

java.awt.Desktop.getDesktop().browse(new java.net.URI("https://www.google.com/maps/@32.0679855,-1.3999209"));

(I can manually set/unset this parameter by going Layers->More->Globe view.)

However, when I load that website via an iFrame (as described below), I get a flat Mercator map, and no option to set it to Globe view.

Java file:

java.awt.Desktop.getDesktop().browse(new java.net.URI("file:////map.html"));

map.html:

<iframe width="600" height="450"
src="https://maps.google.com/?ll=32.0679855,-1.3999209&output=embed&zoom=1&key=MY_API_KEY"></iframe>

Is there a URL parameter for setting Globe view on, or some other way to get Google Maps to display as a globe rather than a flat Mercator map?

Thank you!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source