On Dec 16, 6:59 pm, marcelo <[email protected]> wrote:
> On Dec 16, 7:15 pm, bratliff <[email protected]> wrote:
>
> > The rectangles are evenly spaced in Lat/Lon space but not in pixel
> > space. If I know the Lat/Lon coordinates of the click, I know which
> > rectangle in the grid contains it without assistance from the server.
>
> I take it you mean **if** the rectangles are evenly spaced. Then yes,
> that, plus at least one refence point of the grid, would allow you to
> know which rectangle was clicked. Not only that, you could also
> calculate it if they are not evenly spaced, but layed out according to
> some equation, like a logarithmic scale.
> However, the OP never said that's the case. For all we know, each row
> height/column width could be random, or according to some other
> parameter. ;-)
> And also, he said he wants to 'pop up some additional info' for the
> rectangle clicked, therefore I'd still go for a server side query,
> even if that 'info' is small.
Well, it may not be trivial but
www.polyarc.us/polybuilder
does it for arbitrary shapes in arbitrary positions without assistance
from the server. It does "rollovers" too.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---