[OpenLayers-Users] triggering an SelectFeature's onSelect event

Christopher Schmidt crschmidt at metacarta.com
Thu Mar 13 12:29:30 EDT 2008


On Thu, Mar 13, 2008 at 04:24:02PM +0000, Xin wrote:
> Thanks for the quick reply.
> 
> I would rather do it properly and use events. I couldn't anything in API
> docs or examples. I had a look in feature-select and feature-select-popup.

Use events for what? I'm not understanding. The OpenLayers code doesn't
listen for events for feature selection: the feature selection code
calls functions (which then cause events). We don't live that deeply in
an event-oriented framework that this makes sense, so I don't believe
"do it properly" and "use events" are tied together here.

Is your goal to cause a feature to become selected in the mind of the
selectfeature control?

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list