Package org.zkoss.openlayers.base

Examples of org.zkoss.openlayers.base.LonLat


    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


    Vector nullFeature = new Vector(null, toMap(
        pair("name", "toto is some text about the world"),
        pair("age", 20), pair("favColor", "red"), pair("align", "cm")));
    map.addLayer(vectorLayer);
    vectorLayer.drawFeature(multiFeature);
    map.setCenter(new LonLat(-109.370078125, 43.39484375), 4);
    vectorLayer.addFeatures(Arrays.asList(pointFeature, polygonFeature,
        multiFeature, labelOffsetFeature, nullFeature));
  }
View Full Code Here

    super.doAfterCompose(comp);
    map.addLayer(new WMS("OpenLayers WMS",
        "http://vmap0.tiles.osgeo.org/wms/vmap0", toMap(pair("layers",
            "basic"))));
    map.addControl(new LayerSwitcher());
    map.setCenter(new LonLat(5, 40), 5, false, false);

  }
View Full Code Here

    map.addLayer(new GoogleV3("Google Streets",  toMap(pair("type", GoogleV3.Type.ROADMAP))));
    map.addLayer(new GoogleV3("Google Satellite", toMap(pair("numZoomLevels", 20))));
    map.addLayer(new GoogleV3("Google Hybrid", toMap(pair("type", GoogleV3.Type.HYBRID), pair("numZoomLevels", 20))));
    map.addLayer(new GoogleV3("Google Physical", toMap(pair("type", GoogleV3.Type.SATELLITE), pair("numZoomLevels", 22))));
    map.addControl(new LayerSwitcher());
    map.setCenter(new LonLat(10.2, 48.9).transform(new Projection("EPSG:4326"),
        map.getProjection()), 5, false, false);
  }
View Full Code Here

TOP

Related Classes of org.zkoss.openlayers.base.LonLat

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.