[OpenLayers-Users] Adding popups to vector features

Heidt, Christopher M. CHRISTOPHER.M.HEIDT at saic.com
Wed Dec 10 13:23:20 EST 2008


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?


-----Original Message-----
From: Christopher Schmidt [mailto:crschmidt at metacarta.com] 
Sent: Wednesday, December 10, 2008 1:05 PM
To: Heidt, Christopher M.
Cc: OpenLayers
Subject: Re: [OpenLayers-Users] Adding popups to vector features

On Wed, Dec 10, 2008 at 12:28:11PM -0500, Heidt, Christopher M. wrote:
> Lol, I assumed that since it inherited from feature it would be 
> available but I now see that it is overwritten to return null.
> 
> QUOTE: "HACK - we need to decide if all vector features should be able

> to create popups"
> 
> I'm going to have to vote yes ;p

So, when you have a multipolygon of Alaska -- the aluetians on the
right, and the main body on the left -- where does the popup go? 

getBounds().getCenterLonLat() puts it just north of London.

Regards,
--
Christopher Schmidt
MetaCarta



More information about the Users mailing list