placemark.add(placemarkLabel);
placemark.add(placemarkName);
placemark.add(addPlacemark);
addPlacemark.addClickListener(new ClickListener() {
public void onClick(Widget sender) {
KmlPlacemark placemark = gew.getGEPlugin().createPlacemark("");
placemark.setStyleUrl(
"root://styleMaps#default_copy0+" +
"nicon=http://maps.google.com/mapfiles/kml/paddle/red-circle.png+" +
"hicon=http://maps.google.com/mapfiles/kml/paddle/red-circle.png");
KmlPoint point = gew.getGEPlugin().createPoint("");
placemark.setGeometry(point);
KmlLookAt la = gew.getGEPlugin().getView().copyAsLookAt(gew.getGEPlugin().ALTITUDE_RELATIVE_TO_GROUND);
point.setLatitude(la.getLatitude());
point.setLongitude(la.getLongitude());
placemark.setName(placemarkName.getText());
gew.getGEPlugin().getFeatures().appendChild(placemark);
}
});
vp.add(placemark);