Anonymous user  |  Log in  |  Create Account
Message inside Discusiones generales

DAE - 3D Model in GoogleEarth

Answer 
#1 - 10/20/2011 8:24:38 AM Reporta abuso | PermaLink
Mansur
Fecha de registro: 7/9/2007
14 posts en todos los foros
DAE - 3D Model in GoogleEarth

Answer Quote
Hello all,

i have added allready quite an while ago the 3D Map type to my Map.
Now I want to add 3D- dae - Models to the Map.

Basically My Map Mushup works with an Webservice.
I use an GMap-Event to send some Mapdata to the Service.
The Service sends back some JSCode (Like: returnvalue = "subgurim_GoogleMap.clearOverlays();")
And the Page executes the JSCode via Eval(...).

Does anybody have an Idea how to do that?

Below is an working sample:
google.load('earth','1');
var ge=null;
function init(){
google.earth.createInstance('map3d', initCallback,failureCallback);
}

function initCallback(pluginInstance){
ge=pluginInstance;
ge.getWindow().setVisibility(true);
ge.getNavigationControl().setVisibility(ge.VISIBILITY_AUTO);

var link = ge.createLink('');
        var href = 'http://localhost:88/3D2GridHTTP/swissbuildings3dlv03.kmz'
        link.setHref(href);

        var networkLink = ge.createNetworkLink('');
        networkLink.set(link, true, true); // Sets the link, refreshVisibility, and flyToView.

        ge.getFeatures().appendChild(networkLink);
}


function failureCallback(){
alert('Error happened');
}

<body onload="init()" id="body">
<div id="map3d" style="width: 800px; height:600px;"></div>
</body>

Regards,
Mansur
Top


Powered by Subgurim.NET