Hmmm, I got so far:
public boolean isWithInBounds(GLatLngBounds bounds, GLatLng point) {
// if (pointlat < maxY && pointlat > minY && pointlng > minX &&
pointlng < maxX) { //execute script }
if (bounds.getSW().getLat() < point.getLat()
&& bounds.getSW().getLng() < point.getLng()
&& bounds.getNE().getLat() > point.getLat()
&& bounds.getNE().getLng() > point.getLng()) {
return true;
}
return false;
}
But im pretty sure that it's faulty. When I discovered spartial
hibernate, which can be used with JPA. And in my case it's just what I
need. And JTS( http://www.vividsolutions.com/jts/main.htm ) that
provides more than enough for me... So if anything should be done it
should be either direct integration between JTS and gmap or helper
classes that will translate from gmap to JTS... I will think on if this
could be something that the openlayers integration should support..
Martin Funk wrote:
2008/11/12 Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]>
Hi
I seem to be lacking some helper methods for finding out if a glatlng are
in a gbounds etc.. Are there someone out there who has implemented anything
or do I need to roll my own, and if the latter I guess I should provide a
patch?
go ahead and commit something,
I'll be happy to unclutter.
mf
--
-Wicket for love
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
-Wicket for love
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]