Examples of JObjectArray


Examples of org.gwtopenmaps.openlayers.client.util.JObjectArray

        JSObject[] jsObjects = new JSObject[layers.length];
        for (int i = 0; i < layers.length; i++) {
            jsObjects[i] = layers[i].getJSObject();
        }

        JObjectArray array = new JObjectArray(jsObjects);
        MapImpl.addLayers(getJSObject(), array.getJSObject());
    }
View Full Code Here

Examples of org.gwtopenmaps.openlayers.client.util.JObjectArray

        return layer;
    }

    public Layer[] getLayers() {
        JSObject jsObjects = MapImpl.getLayers(getJSObject());
        JObjectArray jObjectArray = JObjectArray.narrowToJObjectArray(jsObjects);
        Layer[] layers = new Layer[jObjectArray.length()];
        for (int i = 0; i < jObjectArray.length(); i++) {
            layers[i] = Layer.narrowToLayer(jObjectArray.get(i));
        }
        return layers;
    }
View Full Code Here

Examples of org.gwtopenmaps.openlayers.client.util.JObjectArray

        super(element);
    }

    public Polygon(LinearRing[] rings)
    {
        this(PolygonImpl.create((new JObjectArray(rings)).getJSObject()));
    }
View Full Code Here

Examples of org.gwtopenmaps.openlayers.client.util.JObjectArray

        super(linearRing);
    }

    public LinearRing(Point[] pts)
    {
        this(LinearRingImpl.create((new JObjectArray(pts).getJSObject())));
    }
View Full Code Here

Examples of org.gwtopenmaps.openlayers.client.util.JObjectArray

        super(element);
    }

    public MultiPolygon(Polygon[] polygons)
    {
        this(MultiPolygonImpl.create((new JObjectArray(polygons)).getJSObject()));
    }
View Full Code Here

Examples of org.gwtopenmaps.openlayers.client.util.JObjectArray

        for (int i = 0; i < targets.length; i++)
        {
            jsObjects[i] = targets[i].getJSObject();
        }

        JObjectArray array = new JObjectArray(jsObjects);
        getJSObject().setProperty("targets", array.getJSObject());
    }
View Full Code Here

Examples of org.gwtopenmaps.openlayers.client.util.JObjectArray

        for (int i = 0; i < targets.length; i++)
        {
            jsObjects[i] = targets[i].getJSObject();
        }

        JObjectArray array = new JObjectArray(jsObjects);
        getJSObject().setProperty("targets", array.getJSObject());
    }
View Full Code Here

Examples of org.gwtopenmaps.openlayers.client.util.JObjectArray

     *
     * @return the clustered features or null if clustering isn't used
     */
    public VectorFeature[] getCluster() {
        JSObject jsObjects = VectorFeatureImpl.getCluster(getJSObject());
        JObjectArray jObjectArray = JObjectArray.narrowToJObjectArray(jsObjects);
        // Should be null if this is not a cluster
        if (jObjectArray == null) {
            return null;
        }
        VectorFeature[] features = new VectorFeature[jObjectArray.length()];
        for (int i = 0; i < jObjectArray.length(); i++) {
            features[i] = VectorFeature.narrowToVectorFeature(
                    jObjectArray.get(i));
        }
        return features;
    }
View Full Code Here

Examples of org.gwtopenmaps.openlayers.client.util.JObjectArray

     * @param symbolizer The symbolizer of the style (default, temporary,
     * select, delete, ...)
     * @return
     */
    public void addRules(Rule[] rules, String symbolizer) {
        JObjectArray array = new JObjectArray(rules);
        JSObject style = getJSObject().getProperty("styles").getProperty(symbolizer);
        StyleImpl.addRules(style, array.getJSObject());
    }
View Full Code Here

Examples of org.gwtopenmaps.openlayers.client.util.JObjectArray

     * @param options
     */
    public void commit(VectorFeature[] features,
            CRUDOptions options) {
        WFSProtocolImpl.commit(getJSObject(),
                               (new JObjectArray(features)).getJSObject(),
                               options.getJSObject());
    }
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.