Package org.zkoss.openlayers.base

Examples of org.zkoss.openlayers.base.Size


        map.addLayer(new Text("text", toMap(pair("location", Executions.getCurrent().getContextPath() + "/data/textfile.txt"))));

        Markers markers = new Markers("Markers");
        map.addLayer(markers);

        Size size = new Size(21,25);
        Pixel offset = new Pixel(-(size.getWidth()/2), -size.getHeight());
        Icon icon = new Icon("http://www.openlayers.org/dev/img/marker.png",size,offset);
        markers.addMarker(new Marker(new LonLat(0,0),icon));

        Icon halfIcon = (Icon) icon.clone();
         markers.addMarker(new Marker(new LonLat(0,45),halfIcon));
View Full Code Here

TOP

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

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.