Package org.gwtopenmaps.openlayers.client.util

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


     * @param capabilities capabilities object returned by read()
     * @param options additional options
     * @return wmts layer
     */
    public Layer createLayer(JSObject capabilities, WMTSCapabilitiesConfig options) {
        JSObject result = WMTSCapabilitiesImpl.createLayer(getJSObject(), capabilities, options.getJSObject());
        return WMTS.narrowToLayer(result);
    }
View Full Code Here


     * 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

    protected MapLayerEvent(JSObject eventObject) {
        super(eventObject);
    }

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

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

    public LocationUpdateEvent(EventObject eventObject) {
        super(eventObject.getJSObject());
    }

    public Geolocate getSource() {
        JSObject object = super.getSourceJSObject();

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

     *
     * @return {@link Point} point property which is the location transformed in
     * the current map projection.
     */
    public Point getPoint() {
        JSObject object = super.getJSObject().getProperty("point");

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

        return (object != null) ? Point.narrowToPoint(object) : null;
    }

    public Position getPosition() {
        JSObject object = super.getJSObject().getProperty("position");

        return (object != null) ? Position.narrowToPosition(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

    protected SingleFeatureEvent(JSObject eventObject) {
        super(eventObject);
    }

    public VectorFeature getFeature() {
        JSObject feature = super.getJSObject().getProperty("feature");

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

    public LocationFailedEvent(EventObject eventObject) {
        super(eventObject.getJSObject());
    }

    public Geolocate getSource() {
        JSObject object = super.getSourceJSObject();

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

        super(eventObject);
    }

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

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