All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.gwtopenmaps.openlayers.client.geometry.PolygonImpl Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
/**
 *
 */
package org.gwtopenmaps.openlayers.client.geometry;

import org.gwtopenmaps.openlayers.client.util.JSObject;

/**
 * @author Edwin Commandeur - Atlis EJS
 *
 */
public class PolygonImpl {

	public static native JSObject create(JSObject rings)/*-{
		return new $wnd.OpenLayers.Geometry.Polygon($wnd.gwt_openlayers_util.convertToArray(rings));
	}-*/;
	
	public static native boolean intersects(JSObject self, JSObject geometry) /*-{
		return self.intersects(geometry);
	}-*/;	
	
    public static native float getArea(JSObject obj)/*-{
        return obj.getArea();
    }-*/;

    public static native double getGeodesicArea(JSObject obj, JSObject projection)/*-{
        return obj.getGeodesicArea(projection);
    }-*/;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy