[OpenLayers-Users] Adding popups to vector features

Christopher Schmidt crschmidt at metacarta.com
Wed Dec 10 13:05:14 EST 2008


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