Hello.
I've created a simple sketchup model with some images on a location
imported from google earth and exported it as .dae (Collada)
i have used the following code in my project but i cannot see
anything..
ge = instance;
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('');
// A textured model created in Sketchup and exported as Collada.
link.setHref('
http://www.domainname.com/block.dae');
model.setLink(link);
//var la = ge.getView().copyAsLookAt(ge.ALTITUDE_RELATIVE_TO_GROUND);
//loc.setLatitude(la.getLatitude());
//loc.setLongitude(la.getLongitude());
placemark.setGeometry(model);
//la.setRange(300);
//la.setTilt(45);
//ge.getView().setAbstractView(la);
Is there any error in here?
Do i have to give exact coordinates where the model is to be placed?
Please help me