use correct layer.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@8253 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2008-11-03 23:03:15 +00:00
parent 03101401b9
commit c1fefd942d

View File

@@ -52,7 +52,7 @@
extractAttributes: true
}
}));
selectControl = new OpenLayers.Control.SelectFeature(map.layers[1],
selectControl = new OpenLayers.Control.SelectFeature(map.layers[2],
{onSelect: onFeatureSelect, onUnselect: onFeatureUnselect});
map.addControl(selectControl);