Package org.gwtopenmaps.openlayers.client.util

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


        super(eventObject);
    }

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

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

        super(eventObject);
    }

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

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

     * closest point on this geometry. The x1 and y1 properties represent the
     * coordinates of the closest point on the target geometry.
     */
    public Distance distanceTo(Geometry geometry,
            JSObject options) {
        JSObject distanceJSObject = GeometryImpl.distanceTo(getJSObject(),
                geometry.getJSObject(), options);

        DistanceImpl distance = new DistanceImpl(distanceJSObject.getPropertyAsDouble(
                "distance"));

        if (distanceJSObject.hasProperty("x0")) {
            distance.setX0(distanceJSObject.getPropertyAsDouble("x0"));
        }

        if (distanceJSObject.hasProperty("y0")) {
            distance.setY0(distanceJSObject.getPropertyAsDouble("y0"));
        }

        if (distanceJSObject.hasProperty("x1")) {
            distance.setX1(distanceJSObject.getPropertyAsDouble("x1"));
        }

        if (distanceJSObject.hasProperty("y1")) {
            distance.setY1(distanceJSObject.getPropertyAsDouble("y1"));
        }

        return distance;
    }
View Full Code Here

    public int getNumLoadingTiles() {
        return WMSImpl.getNumLoadingTiles(getJSObject());
    }

    public WMSParams getParams() {
        JSObject params = HTTPRequestLayerImpl.getParams(getJSObject());
        return new WMSParams(params);
    }
View Full Code Here

        JSObject params = HTTPRequestLayerImpl.getParams(getJSObject());
        return new WMSParams(params);
    }

    public WMSOptions getOptions() {
        JSObject options = LayerImpl.getOptions(getJSObject());
        return new WMSOptions(options);
    }
View Full Code Here

        super(eventObject);
    }

    public Layer getLayer()
    {
        JSObject object = getJSObject().getProperty("layer");

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

     * used returns null.
     *
     * @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;
        }
View Full Code Here

    public String getFID() {
        return FeatureImpl.getFID(getJSObject());
    }

    public Popup createPopup(boolean closeBox) {
        JSObject popupObj = FeatureImpl.createPopup(this.getJSObject(), closeBox);

        return Popup.narrowToOpenLayersPopup(popupObj);
    }
View Full Code Here

    public Bounds() {
        this(BoundsImpl.create());
    }

    public double[] toArray() {
        JSObject boundsOpaque = BoundsImpl.toArray(getJSObject());
        JDoubleArray bounds = JDoubleArray.narrowToJDoubleArray(boundsOpaque);
        int boundsLength = bounds.length();
        double[] boundsCoordinates = new double[4];
        if (boundsLength == 4) {
            for (int i = 0; i < boundsLength; i++) {
View Full Code Here

TOP

Related Classes of org.gwtopenmaps.openlayers.client.util.JSObject

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.