Ah nice - managed to get this one working: http://googlegeodevelopers.blogspot.com/2009/04/markerclusterer-solution-to-too-many.html
I should be able to get that working (not the ideal solution, but certainly seems quite quick, and should reduce the server load) Cheers! Andy On Feb 25, 6:24 pm, 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) { > /* 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. > > -- 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.
