Google earth enterprise - javascript api URL

the google documentation says that google maps javascript api can be used to access google earth enterprise maps but doesn’t say how to specify script src.

to access google maps api, I use src = "http://maps.google.com/maps/api/js?sensor=true"

can anyone point out directions for replacing this url?

+4
source share
1 answer

To use the Google Maps key for the enterprise using the Google AJAX API Loader, you simply load the shared bootloader using your key:

<script type="text/javascript" src="http://www.google.com/jsapi?key=YOURKEY&sensor=true"></script> 

See: https://support.google.com/code/bin/answer.py?hl=en&answer=92831

Then you would use the URL of the Earth Enterprise alternate database to connect to the default database through the google.earth.createInstance method , e.g.

 var options = { database: 'http://yourserver.com/database/' }; google.earth.createInstance('map3d', initCB, failureCB, options); 

You may need to reconfigure Google Earth before instances of the Google Earth plug-in can connect to it using this method, it depends on the version of the Earth server.

Indeed, for help and support with enterprise versions of Google Earth, you must contact support. That is what is in the end.

+1
source

Source: https://habr.com/ru/post/1335308/


All Articles