Examples of KmlPlacemark


Examples of com.google.client.widget.ge.KmlPlacemark

    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);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.