[OpenLayers-Users] Adding popups to vector features

Heidt, Christopher M. CHRISTOPHER.M.HEIDT at saic.com
Wed Dec 10 14:21:52 EST 2008


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:crschmidt at 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



More information about the Users mailing list