Hi Christopher You could create your own hover feature for that. This control would use a feature handler internally, just like th select feature control. You can start from the select feature control and simplify it to the point where it just creates a feature handler configured with "over" and "out" callbacks. Hope this is enough information...
Eric 2008/12/10, Heidt, Christopher M. <christopher.m.he...@saic.com>: > Yep, that's exactly what im doing. thanks > I know I cant have to select controls open at once, but is there a way > to add a hover select to that example? > Basically I need to show an abridged description on hover and a fullout > verbose description on click. > > -----Original Message----- > From: Christopher Schmidt [mailto:crschm...@metacarta.com] > Sent: Wednesday, December 10, 2008 1:33 PM > To: Heidt, Christopher M. > Cc: OpenLayers > Subject: Re: [OpenLayers-Users] Adding popups to vector features > > On Wed, Dec 10, 2008 at 01:23:20PM -0500, Heidt, Christopher M. wrote: >> Very valid point. >> All I was really going for was a popup on select, so for me id >> probably try to tie cursor position into it. >> Perhaps that's more like a vector tooltip? > > Right, so your question is "how can I create a popup on selecting a > feature that is appropriately positioned", which is a different question > than whether a vector feature should have a createPopup method. > > http://openlayers.org/dev/examples/sundials.html creates a popup in a > selectfeature callback; It is probably possible to take the evt.xy from > the select feature callback (I believe I've done that before). > > Regards, > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users