Package org.zkoss.openlayers.geometry

Examples of org.zkoss.openlayers.geometry.Polygon


    point2List.add(point2List.get(0));

    LinearRing linearRing = new LinearRing(point2List);
    List<LinearRing> ringList = new ArrayList<LinearRing>();
    ringList.add(linearRing);
    Vector polygonFeature = new Vector(new Polygon(ringList));

    map.addLayer(vectorLayer);
    map.setCenter(new LonLat(point.getX(), point.getY()), 5);
    vectorLayer.addFeatures(Arrays.asList(pointFeature, pointFeature3,
        pointFeature2, lineFeature, polygonFeature));
View Full Code Here


    }

    pointList.add(pointList.get(0));

    LinearRing linearRing = new LinearRing(pointList);
    Vector polygonFeature = new Vector(new Polygon(
        Arrays.asList(linearRing)), toMap(pair("name", "dude"),
        pair("age", 21), pair("favColor", "purple"),
        pair("align", "lb")));

    Vector multiFeature = new Vector(new Collection(Arrays.asList(
View Full Code Here

  public Polygon toGeometry() {
    List<Point> points = cast(Arrays.asList(
        new Point(_left, _bottom), new Point(_right, _bottom),
        new Point(_right, _top), new Point(_left, _top)));
    return new Polygon(Arrays.asList(new LinearRing(points)));
  }
View Full Code Here

TOP

Related Classes of org.zkoss.openlayers.geometry.Polygon

Copyright © 2018 www.massapicom. 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.