javascript - Google Earth Plugin not loading sideDatabase from Mapsengine/Earthbuilder -


i have not been able display side database (map mapsengine/earthbuilder). have installed google plugin , tried access firefox, chrome, , ie browsers , nothing seems work. not sure i'm doing wrong have confirmed code code used in google's code playground, , have attempted workaround suggested in similar issue past (issue 21: gmaps engine layer disappeared on gearth plugin). when specifing url of map displayed in ge plugin, changed url include &export=download, 1 of fixes saw in similar issue (it kml files google docs).

strangely, when webpage accessed, not give error side database failed download. have included part of code below.

any assistance appreciated.

thanks in advance,


<script type="text/javascript">     var cho; google.load("earth", "1");  function init() {   google.earth.createinstance('map3d', initcb, failurecb); }  function initcb(instance) {   cho = instance;   cho.getwindow().setvisibility(true);    cho.getnavigationcontrol().setvisibility(cho.visibility_auto);   cho.getlayerroot().enablelayerbyid(cho.layer_borders, true);   cho.getlayerroot().enablelayerbyid(cho.layer_roads, true);    addsidedatabase()     // add controls window   cho.getoptions().setstatusbarvisibility(true);   cho.getnavigationcontrol().setvisibility(cho.visibility_auto);    // update view in google earth   var lookat = cho.createlookat('');   lookat.setlatitude(30.0);   lookat.setlongitude(-90.0);   lookat.setrange(9500000); //default 0.0   cho.getview().setabstractview(lookat);   }    function failurecb(errorcode) {     alert(errorcode);   }    function sidedatabasesuccess(db) {   sidedatabase = db;    db.setdraworder(2);   }    function sidedatabasefail() {      alert('sorry! side database failed load!');   }    /** add url globe served earth enterprise or earth builder.   *     function operates file => add database feature   *     in google earth ec.   */   function addsidedatabase() {      google.earth.addsidedatabase(     cho, "https://mapsengine.google.com/map/edit?mid=zhgxrx6mts2q.khgfoyzlcybq&export=download",   sidedatabasesuccess,   sidedatabasefail,   {     username: '',     password: ''    } );   }google.setonloadcallback(init);</script>  

is url google maps engine lite map? if so, might issue. tried swapping in url (https://earthbuilder.google.com/10446176163891957399-13516001307527776624-4/kh/) used in google code playground example here http://code.google.com/apis/ajax/playground/#adding_a_side_database. 1 worked, google maps engine lite url didn't. furthermore, didn't seem call success or failure callback functions!


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -