Hi Alex,
If i assume that your popup is displayed when you click on your marker,
marker.events.register(mousedown, feature, markerClick);
you could keep an global array of all your features and do the same
thing that in your markerClick function. ( aFeatures[i].popup.toggle(); )
Alan
So I've been hunting around trying to figure this out, and I've been looking
in Firebug for some information on that popup. The first thing i noticed is
that a popup has an optional field for 'id'... this could come in handy.
I also saw it was given a numbered id (see screenshot -
Hi aschwartz,
First of all, you'll need to access this marker. A simple way is to
keep a trace of it. How do you add it to your map ? If you create/add
this marker in a function at the load of your page, you can just create
a global variable and assign to it the marker. In this case, you'll
Alan Boudreault wrote:
create a JS function to toggle this marker easily by setting
something like: href=javascript:toggleMyMarker();
Hi Alan,
I understand what I need to get done, like to keep track of the markers in
an array, and access them and tell them to toggle their popup, but
Hello all,
I am trying to figure out how to toggle a marker's popup externally by
clicking a link.
I'm hoping to use javascript: notation to accomplish this, either by
using entirely inline javascript or by calling some other function (that I'm
not sure how to write.)
Thanks in advance.