[OpenLayers-Users] triggering an SelectFeature's onSelect event
Xin
xin at zenpow.com
Wed Mar 12 13:02:13 EDT 2008
Hi,
I have an KML layer which when a feature is clicked, a pop up opens. This is
working now. Thanks!
selectControl = new OpenLayers.Control.SelectFeature( kmlLayer,
{ onSelect: onFeatureSelect,
onUnselect: onFeatureUnselect
});
I would like to trigger the onSelect 'event' (is it an event?) manually. I
tried doing the following with map.events.triggerEvent without success.
map.events.triggerEvent('clickevent', kmlLayer.features[0])
Can anyone help at all?
Xin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080312/e290b088/attachment.html
More information about the Users
mailing list