Examples of VectorFeature


Examples of org.gwtopenmaps.openlayers.client.feature.VectorFeature

            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

Examples of org.gwtopenmaps.openlayers.client.feature.VectorFeature

        if (nr < 1) {
            return null;
        } else {
            VectorFeature[] vfs = new VectorFeature[nr];
            for (int i = 0; i < nr; i++) {
                VectorFeature vf = VectorFeature.narrowToVectorFeature(VectorImpl.getFeature(
                        getJSObject(), i));
                vfs[i] = vf;
            }

            return vfs;
View Full Code Here

Examples of org.gwtopenmaps.openlayers.client.feature.VectorFeature

        if (nr < 1) {
            return null;
        } else {
            VectorFeature[] vfs = new VectorFeature[nr];
            for (int i = 0; i < nr; i++) {
                VectorFeature vf = VectorFeature.narrowToVectorFeature(VectorImpl.getSelectedFeature(
                        getJSObject(), i));
                vfs[i] = vf;
            }

            return vfs;
View Full Code Here

Examples of org.gwtopenmaps.openlayers.client.feature.VectorFeature

            }

            VectorFeature[] result = new VectorFeature[jsArr.length];
            for (int i = 0; i < jsArr.length; i++)
            {
                VectorFeature vf = VectorFeature.narrowToVectorFeature(jsArr[i]);
                result[i] = vf;
            }

            return result;
        }
View Full Code Here

Examples of org.gwtopenmaps.openlayers.client.feature.VectorFeature

     */
    private VectorFeature getFeatureFromEventObject(EventObject eventObject) {
        // The feature that generated the event is on the
        // property "feature" of the original JavaScript event
        // object
        VectorFeature vectorFeature = VectorFeature.narrowToVectorFeature(eventObject.getJSObject().getProperty(
                "feature"));

        return vectorFeature;
    }
View Full Code Here

Examples of org.gwtopenmaps.openlayers.client.feature.VectorFeature

        eventListeners.addListener(this, beforeFeatureHighlightedListener,
                                   EventType.CONTROL_SELECT_FEATURE_BEFORE_HIGHLIGHTED,
                                   new EventHandler() {
            public void onHandle(EventObject eventObject) {

                VectorFeature vectorFeature = getFeatureFromEventObject(
                        eventObject);

                // Trigger the event
                beforeFeatureHighlightedListener.onBeforeFeatureHighlighted(
                        vectorFeature);
View Full Code Here

Examples of org.gwtopenmaps.openlayers.client.feature.VectorFeature

        eventListeners.addListener(this, featureUnhighlightedListener,
                                   EventType.CONTROL_SELECT_FEATURE_UNHIGHLIGHTED,
                                   new EventHandler() {
            public void onHandle(EventObject eventObject) {

                VectorFeature vectorFeature = getFeatureFromEventObject(
                        eventObject);

                // Trigger the event
                featureUnhighlightedListener.onFeatureUnhighlighted(
                        vectorFeature);
View Full Code Here

Examples of org.gwtopenmaps.openlayers.client.feature.VectorFeature

        eventListeners.addListener(this, featureHighlightedListener,
                                   EventType.CONTROL_SELECT_FEATURE_HIGHLIGHTED,
                                   new EventHandler() {
            public void onHandle(EventObject eventObject) {

                VectorFeature vectorFeature = getFeatureFromEventObject(
                        eventObject);

                // Trigger the event
                featureHighlightedListener.onFeatureHighlighted(vectorFeature);
            }
View Full Code Here

Examples of org.gwtopenmaps.openlayers.client.feature.VectorFeature

            points[i] = new Point(lonLat.lon(), lonLat.lat());
        }
        LinearRing ring = new LinearRing(points);
        Polygon polygon = new Polygon(new LinearRing[] { ring });

        vectorLayer.addFeature(new VectorFeature(polygon));
        modifyControl.activate();
    }
View Full Code Here

Examples of org.gwtopenmaps.openlayers.client.feature.VectorFeature

        if (nr < 1) {
            return null;
        } else {
            VectorFeature[] vfs = new VectorFeature[nr];
            for (int i = 0; i < nr; i++) {
                VectorFeature vf = VectorFeature.narrowToVectorFeature(
                        VectorImpl.getFeature(
                                getJSObject(), i));
                vfs[i] = vf;
            }
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.