Examples of JSObject


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

     * feature.
     *
     * @param exceptFeature null or a feature that should stay selected
     */
    public void unselectAll(VectorFeature exceptFeature) {
        JSObject options = null;
        if (exceptFeature != null) {
            options = JSObject.createJSObject();
            options.setProperty("except", exceptFeature.getJSObject());
        }
        SelectFeatureImpl.unselectAll(getJSObject(), options);
    }
View Full Code Here

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

        super(eventObject);
    }

    public VectorFeature getVectorFeature()
    {
        JSObject object = getJSObject().getProperty("feature");

        return (object != null) ? VectorFeature.narrowToVectorFeature(object) : null;
    }
View Full Code Here

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

        super(eventObject);
    }

    public Map getSource()
    {
        JSObject object = getSourceJSObject();

        return (object != null) ? Map.narrowToMap(object) : null;
    }
View Full Code Here

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

    /**
     * @return JSObject - source object that fired the event
     */
    public JSObject getSourceJSObject()
    {
        JSObject object = EventObjectImpl.getObject(getJSObject());

        return object;
    }
View Full Code Here

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

     * @param id - String identifier assigned by OpenLayers
     *
     * @return Layer - the layer on the map or null if there is no layer with the given id
     */
    public Layer getLayer(String id) {
        JSObject jsObject = MapImpl.getLayer(id, getJSObject());
        Layer layer = Layer.narrowToLayer(jsObject);
        return layer;
    }
View Full Code Here

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

        Layer layer = Layer.narrowToLayer(jsObject);
        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));
        }
View Full Code Here

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

        }
        return layers;
    }

    public Control getControlsByClass(String className) {
        JSObject jsObject = MapImpl.getControlsByClass(getJSObject(), className);
        return Control.narrowToControl(jsObject);
    }
View Full Code Here

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

            super(eventObject.getJSObject());
        }

        public WMSGetFeatureInfo getSource()
        {
            JSObject object = getSourceJSObject();

            return (object != null) ? WMSGetFeatureInfo.narrowToWMSGetFeatureInfo(object) : null;
        }
View Full Code Here

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

        super(eventObject);
    }

    public Vector getSource()
    {
        JSObject object = getSourceJSObject();

        return (object != null) ? Vector.narrowToVector(object) : null;
    }
View Full Code Here

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

        super(eventObject);
    }

    public Marker getSource()
    {
        JSObject object = getSourceJSObject();

        return (object != null) ? Marker.narrowToMarker(object) : null;
    }
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.