Show Preview
Show Cesium Code
Show Google Earth Code
For Google Earth Developers
All Google Earth examples
Additional Resources
Tutorials
Cesium Sandcastle
Reference Documentation
Relevant Cesium Source
Relevant Google Earth Source (
link
)
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(''); link.setHref('http://earth-api-samples.googlecode.com/svn/trunk/examples/' + 'static/splotchy_box.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);