Hi Guillermo,
Look if you can use:
*feature.attributes["city_name"]*
example
featureinfo = function(feature)
{
alert(*feature.attributes["city_name"])*;
}
controls = {
...
featureinfocontrol: new OpenLayers.Control.SelectFeature(myvectorlayer,
{onSelect: featureinfo});
}
...
All the best,
Adorian
On Mon, Dec 8, 2008 at 12:37 PM, Guillermo Lopez Mackinnon <
[EMAIL PROTECTED]> wrote:
> Thanks for your reply!
> Actually, I meant the feature attributes like for instance "city_name",
> "population" and so on. I´d like to display some of them when the user
> clicks on a feature and since I may have several layers, doing it in the way
> I explained in my initial post it'll be pretty tedious so I'd say it should
> be some other way (a correct way) of doing this kind of stuff. Am I right?
>
>
> Thanks again for your help!
>
> Guillermo
>
>
> On Mon, Dec 8, 2008 at 11:40 AM, Adorian Ardelean <[EMAIL PROTECTED]>wrote:
>
>> Hi Nino,
>>
>> Do you mean all nodes of a polygon? If yes, you could explore Vector
>> Formats Example in http://openlayers.org/dev/examples/ where is shows
>> also how you could output coordinates of a feature in various formats.
>>
>> All the best,
>> Adorian
>>
>>
>> On Mon, Dec 8, 2008 at 11:24 AM, Nino Saturnino Martinez Vazquez Wael <
>> [EMAIL PROTECTED]> wrote:
>>
>>> How can I extract all points for a geometry?
>>>
>>>
>>> http://dev.openlayers.org/releases/OpenLayers-2.7/doc/apidocs/files/OpenLayers/Geometry/Collection-js.html#OpenLayers.Geometry.Collection
>>> , do I need to call a field directly?
>>>
>>>
>>> --
>>> -Wicket for love
>>>
>>> Nino Martinez Wael
>>> Java Specialist @ Jayway DK
>>> http://www.jayway.dk
>>> +45 2936 7684
>>>
>>> _______________________________________________
>>> Users mailing list
>>> [email protected]
>>> http://openlayers.org/mailman/listinfo/users
>>>
>>
>>
>>
>> --
>> Dr. Adorian Ardelean
>> coordinator of myNature Project
>>
>> http://mybiosis.info/nature/portal.php?pagename=firstpage [a Romanian
>> biodiversity-database]
>> http://mybiosis.info/nature/portal.php?pagename=adorian [CV]
>>
>> _______________________________________________
>> Users mailing list
>> [email protected]
>> http://openlayers.org/mailman/listinfo/users
>>
>>
>
--
Dr. Adorian Ardelean
coordinator of myNature Project
http://mybiosis.info/nature/portal.php?pagename=firstpage [a Romanian
biodiversity-database]
http://mybiosis.info/nature/portal.php?pagename=adorian [CV]
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users