I have following code for making eventhandler for the model:
.............
var placemark = ge.createPlacemark('');
placemark.setName('model');
var model = ge.createModel('');
ge.getFeatures().appendChild(placemark);
var loc = ge.createLocation('');
model.setLocation(loc);
var link = ge.createLink('');
var pagePath = "http://Localhost:50144/WebSite1/Lwow/Models/";
link.setHref(pagePath + "lwow.dae");
model.setLink(link);
var la =
ge.getView().copyAsLookAt(ge.ALTITUDE_RELATIVE_TO_GROUND);
loc.setLatitude(myLatitude);
loc.setLongitude(myLongitude);
placemark.setGeometry(model);
la.setRange(300);
la.setTilt(80);
ge.getView().setAbstractView(la);
google.earth.addEventListener(model, "mousedown",
onModelDown);
.............
But it isn't work. Why ?
Also i have same problem with creating eventhandler for the ground
overlay
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---