From: Edwin C. <com...@gm...> - 2010-10-12 14:36:36
|
Hi Phillip, The containsPoint function in OL is a bit silly in that it returns 1 for true and false for false :). I would say we return a boolean. Try adding this to Polygon public boolean containsPoint(Point p){ PolygonImpl.containsPoint(p.getJSObject(), this.getJSObject()); } and this to PolygonImpl public static native boolean containsPoint(JSObject p, JSObject self)/*-{ var out = self.containsPoint(p); return (out===1)?true:false; }-*/; Greetings, Edwin Commandeur On 12 October 2010 15:47, Philipp Verhoeven <phi...@go...> wrote: > Greetings, > > > I would like to use the containsPoint method of the Polygon class like it is > desribed: > http://dev.openlayers.org/docs/files/OpenLayers/Geometry/Polygon-js.html#OpenLayers.Geometry.Polygon.containsPoint > > The method doesn't seem to be implemented in gwt-openlayers, am I right?! > > Does anyone know a quick fix to use this method anyway? > > > Thanks and cheers, > Philipp > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > _______________________________________________ > Gwt-openlayers-users mailing list > Gwt...@li... > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > > |