[OpenLayers-Users] Popup content

Simone Gadenz simone.gadenz at jrc.it
Fri Mar 28 06:38:41 EDT 2008


Ok, I managed to have what I want into the popup. Now I would be interested
in changing the function to add all the GeoRSS tag to the feature data
attributes. Better would be to hava a parameter specifing which fields to
add. I think I may put a parmaeter into the options array. How can I access
the value of an options element?

tks

-----Original Message-----
From: Christopher Schmidt [mailto:crschmidt at metacarta.com] 
Sent: venerdì 28 marzo 2008 9.52
To: Simone Gadenz
Cc: 'Users OpenLayers'
Subject: Re: [OpenLayers-Users] Popup content

On Fri, Mar 28, 2008 at 09:46:41AM +0100, Simone Gadenz wrote:
> Then I added the selectFeature control to the map and when the user click
on
> the gml feature a popup appear but with information such as feature name
and
> area.
> 
>  I would like to have the data I saved in the feature object instead.
Where
> is the content of the popup created?

In the function you copy pasted, probably called 'onFeatureSelect'. Look
for where the function 'getArea()' is called.

Regards,
-- 
Christopher Schmidt
MetaCarta




More information about the Users mailing list