您需要到Google上研究下KML文件规范,说简单了,就是生成一个KML文件,然后加载到Google Earth中。http://code.google.com/intl/zh-CN/apis/kml/documentation/kml_tut.html
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2"> <Placemark>
<name>Simple placemark</name>
<description>Attached to the ground. Intelligently places itself at the height of the underlying terrain.</description>
<Point>
<coordinates>-122.0822035425683,37.42228990140251,0</coordinates>
</Point>
</Placemark> </kml>
这段KML就是在画一个点标记,有名称(name)、描述(description)和经纬度(coordinates)信息,默认的点样式是大头针,样式可以通过<icon>进行设置。