Discussion:
Initial visibility of markers
Base
2008-07-08 15:09:47 UTC
Permalink
I'm aware of the show() and hide() functions of markers. The problem
is, these functions can be used when the marker is added to the map as
an overlay. Now I want to add markers that are hidden by default, and
call the show() function in case I would like to make them visible. Is
that possible?
Ralph Ames
2008-07-08 15:12:45 UTC
Permalink
Try this link
http://econym.googlepages.com/categories.htm

Ralph
Base
2008-07-08 15:26:24 UTC
Permalink
Thanks. Basically I'm doing the same now. But the difference is that
the markers are visible on the map for a short time. The hide function
then makes them invisible, but the visitor notices when the disappear
from the map.
Try this linkhttp://econym.googlepages.com/categories.htm
Ralph
Mike Williams
2008-07-09 04:08:39 UTC
Permalink
Post by Base
Thanks. Basically I'm doing the same now. But the difference is that
the markers are visible on the map for a short time. The hide function
then makes them invisible, but the visitor notices when the disappear
from the map.
Browsers [1] only refresh the graphics when Javascript pauses, so if you
perform the addOverlay() and the hide() in the same chunk of Javascript
the markers shouldn't ever be visible.

[1] At least FF, MSIE and Opera, I don't know about other browsers.
--
http://econym.googlepages.com/index.htm
The Blackpool Community Church Javascript Team
Loading...