Show Preview
Show Cesium Code
Show Google Earth Code
For Google Earth Developers
All Google Earth examples
Additional Resources
Tutorials
Cesium Sandcastle
Reference Documentation
Add Pin
Relevant Cesium Source
Relevant Google Earth Source (
link
)
var placemark = ge.createPlacemark(''); placemark.setName("placemark" + counter); ge.getFeatures().appendChild(placemark); // Create style map for placemark var icon = ge.createIcon(''); icon.setHref('http://maps.google.com/mapfiles/kml/paddle/red-circle.png'); var style = ge.createStyle(''); style.getIconStyle().setIcon(icon); placemark.setStyleSelector(style); // Create point var la = ge.getView().copyAsLookAt(ge.ALTITUDE_RELATIVE_TO_GROUND); var point = ge.createPoint(''); point.setLatitude(la.getLatitude()); point.setLongitude(la.getLongitude()); placemark.setGeometry(point); counter++;