Examples of JObjectArray


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

     * @param vectorFeatures - an array of vector features
     * @return a String containing the vector features written in a particular format.
     */
    public String write(VectorFeature[] vectorFeatures)
    {
        JObjectArray objectArray = new JObjectArray(vectorFeatures);

        return FormatImpl.writeArray(getJSObject(), objectArray.getJSObject());
    }
View Full Code Here

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

    // read(String vfString, WKTReadOptions options)
    // readToMap(String vfString, WKTReadOptions options)
    public VectorFeature[] read(String vectorFormatString)
    {
        JSObject out = FormatImpl.read(getJSObject(), vectorFormatString);
        JObjectArray jObjectArray = JObjectArray.narrowToJObjectArray(out.ensureOpaqueArray());
        int nr = jObjectArray.length();
        VectorFeature[] vfs = new VectorFeature[nr];
        for (int i = 0; i < nr; i++)
        {
            // get objects and narrow them to vector features
            vfs[i] = VectorFeature.narrowToVectorFeature(jObjectArray.get(i));
        }

        return vfs;
    }
View Full Code Here

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

     * Set the child filters for this filter.
     * @param filters Child filters for this filter.
     */
    public void setFilters(Filter[] filters)
    {
        JObjectArray array = new JObjectArray(filters);
        getJSObject().setProperty("filters", array.getJSObject());
    }
View Full Code Here

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

        JSObject[] array = new JSObject[features.length];
        for (int i = 0 ; i< features.length; i++)
        {
            array[i] = features[i].getJSObject();
        }
        JObjectArray jobjectarray = new JObjectArray(array);
        getJSObject().setProperty("features", jobjectarray.getJSObject());
    }
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

   * By default, OpenLayers 2.7 adds Attribution, ArgParser, Navigation and PanZoom Controls.
   *
   * This method removes these default controls from the Map.
   */
  public void removeDefaultControls(){
    this.setControls(new JObjectArray(new JSObject[] {}));
  }
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

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

    public void commit(VectorFeature feature,
            CRUDOptions options) {
        VectorFeature[] features = new VectorFeature[1];
        features[0] = feature;
        WFSProtocolImpl.commit(getJSObject(),
                               (new JObjectArray(features)).getJSObject(),
                               options.getJSObject());
    }
View Full Code Here

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

        super(element);
    }

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

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

    protected Collection(JSObject element) {
        super(element);
    }

    public Collection(Geometry[] geometries) {
        this(CollectionImpl.create((new JObjectArray(geometries).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.