Hi, Thanks for the reply.
I'm already doing the "split" in my perl code :) (so the numbers are right) Just need to get the SQL query to work :( TIA Andy On Feb 25, 6:33 pm, "[email protected]" <[email protected]> wrote: > On Feb 25, 10:24 am, youradds <[email protected]> wrote: > > > > > Hi, > > > Firstly - thanks for the reply :) > > > Secondly - Ok, think I'm getting a little confused here= ) > > > So what you are saying, is that if the value of these 2 vars: > > > var southWest = bounds.getSouthWest(); > > var northEast = bounds.getNorthEast(); > > > > Searching from long -10 to +10 etc is easy, as above. > > > Searching from long 170 to -170 (in that order) is perfectly valid. > > > So you are saying the SQL query I showed you is fine for those? > > > > If 'west bound' < 'east bound' search as normal. > > > If 'west bound' > 'east bound', you are crossing the line and need to > > > So for this, I would need to do something like: > > > if (southWest > northEast) { > > These need to be just the longitude, not a lat/lng pair. > > var southWest = bounds.getSouthWest(); > > southWest is a GLatLng. > > You want to use something like: > var west = bounds.getSouthWest().lng(); > > -- Larry > > > /* search normally */} else { > > > /* need to search differently - but how? =)*/ > > > } > > > Is there no easier (built in system) that could also do this? > > > I found this page: > > >http://code.google.com/p/gmaps-utility-library-dev/ (MarkerClusterer) > > ..which shows this example: > > >http://gmaps-utility-library-dev.googlecode.com/svn/tags/markercluste... > > > This is doing pretty much exactly the way I want it (but the markers > > will just be shown at certain "zoom levels", and be links to articles > > at that location, and nothing else) > > > The problem is - I tried using that example, but couldn't get it to > > work :/ > > > TIA! > > > Andy > > > On Feb 25, 5:03 pm, Rossko <[email protected]> wrote: > > > > > Can you give me a more detailed example of your exaple? > > > > Searching from long -10 to +10 etc is easy, as above. > > > Searching from long 170 to -170 (in that order) is perfectly valid. > > > > So you need to test: > > > If 'west bound' < 'east bound' search as normal. > > > If 'west bound' > 'east bound', you are crossing the line and need to > > > manage it differently. > > > > WHERE x > 'west bound' AND x < 180 > > > AND x > -180 AND x < 'east bound' > > > Two search conditions.- Hide quoted text - > > > - Show quoted text - > > -- You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
