Package org.gwtopenmaps.openlayers.client.geometry

Examples of org.gwtopenmaps.openlayers.client.geometry.LineString


            int i = 0;
            for (Position position : positions) {
                linePoints[i++] = mapView.createPoint(position.getLongitude(), position.getLatitude());
            }

            LineString lineString = new LineString(linePoints);
            getVectorLayer().addFeature(new VectorFeature(lineString));
            //mapView.getMap().zoomToExtent(lineString.getBounds());
        }
    }
View Full Code Here


    public boolean convertLineStringToMultiLineString() {
        final Geometry g = this.getGeometry();

        if (g.getClassName().equals(
                org.gwtopenmaps.openlayers.client.geometry.Geometry.LINESTRING_CLASS_NAME)) {
            final LineString ls = LineString.narrowToLineString(g.getJSObject());
            final MultiLineString mls = new MultiLineString(new LineString[]{ls});
            this.getJSObject().setProperty("geometry", mls.getJSObject());

            return true;
        } else {
View Full Code Here

    public boolean convertLineStringToMultiLineString() {
        final Geometry g = this.getGeometry();

        if (g.getClassName().equals(
                org.gwtopenmaps.openlayers.client.geometry.Geometry.LINESTRING_CLASS_NAME)) {
            final LineString ls = LineString.narrowToLineString(g.getJSObject());
            final MultiLineString mls = new MultiLineString(new LineString[]{ls});
            this.getJSObject().setProperty("geometry", mls.getJSObject());

            return true;
        } else {
View Full Code Here

TOP

Related Classes of org.gwtopenmaps.openlayers.client.geometry.LineString

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.