Re: [OpenLayers-Users] Externally toggle a marker's popup

2008-06-16 Thread Alan Boudreault
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

Re: [OpenLayers-Users] Externally toggle a marker's popup

2008-06-13 Thread aschwartz
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 -

Re: [OpenLayers-Users] Externally toggle a marker's popup

2008-06-13 Thread Alan Boudreault
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

Re: [OpenLayers-Users] Externally toggle a marker's popup

2008-06-13 Thread aschwartz
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

[OpenLayers-Users] Externally toggle a marker's popup

2008-06-09 Thread aschwartz
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.