I have a function identifier, I can capture the marker layer when loading GeoRSS, but I'm still not sure how to call a pop-up window for programmatic programming.
I will create a popup on demand if necessary, but it looks like I should get the identifier of the marker, as shown on the map, and trigger some kind of event on it. I tried using jQuery and throwing an event $(marker-id).click()on map elements, but this does not seem to work. What am I missing?
Since I was asked to enter the code, and since I assumed it was a template, here, where I still have:
map = new OpenLayers.Map('myMap');
map.addLayer(new OpenLayers.Layer.OSM());
map.addLayer(new OpenLayers.Layer.GeoRSS(name,url));
Elsewhere, I made several jQuery templates and created me a good list of all the points that appear on the map. I know how to make a callback from a layer loadendand get a layer object, I know how to extract my layer from the map manually, I know how to do this from the layer collection and find my layer. So I can get any of these details about the popup, but I still don't know how to use the built-in DOM methods or this API to make it as simple as element.click()what I prefer to do.
source
share