add feature to markers layer, not to image layer. thanks to stephen w. for spotting this.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@7236 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2008-05-21 13:23:30 +00:00
parent d40f372742
commit 069a72b5e7

View File

@@ -841,7 +841,7 @@
*/
function addMarker(ll, popupClass, popupContentHTML, closeBox, overflow) {
var feature = new OpenLayers.Feature(layer, ll);
var feature = new OpenLayers.Feature(markers, ll);
feature.closeBox = closeBox;
feature.popupClass = popupClass;
feature.data.popupContentHTML = popupContentHTML;