Wasn't it [email protected] who wrote:
>> 2. although the markers are not showing on the page, I would still
>> like there to be a hot spot for that marker if I were to hover over it
>> on the map. If you hover over it it should produce the tool tip. If
>> you were to click on it the marker would appear and the info balloon
>> would appear.
>
>That implies that you probably want to either:
>1. do the processing on the server (you did say you have LOTS of
>markers)
>or
>2. use an "invisible" marker, on mouseover use setIcon to change to a
>visible one.
>
>If you have LOTS of markers, you probably want to do most of the
>processing server side, otherwise the preformance of the map will be
>vary sluggish, particularly with IE.
The server-side idea would make sense for clicks, but I can't see it
making sense for mouseovers. You'd have to send the mouse position to
the server continuously as the user moves the mouse across the map. As
there are LOTS of markers, there'd be lots of tooltips popping up a few
tenths of a second behind the mouse movement.
One possibility, but not easy, is to do something like what Google do
with GLayers:
Use square markers
As the map pans or zooms, the client sends the viewport position to a
hotspot server, which returns details of the locations of the hotspots,
marker id and tooltip text for a few hundred of the most important
markers that are in the viewport.
As the mouse moves over the map, read the mouse position and scan
through the hotspot list and display the tooltip. You won't be able to
use {title} to display the tooltip, because there's nothing actually
there to attach the {title} to, so you'll have to do something like
this: http://econym.org.uk/gmap/tooltips4.htm
I said it wasn't going to be easy.
--
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---