[OpenLayers-Users] GML feature attributes
Stephen Woodbridge
woodbri at swoodbridge.com
Fri Apr 6 14:03:02 EDT 2007
Try:
geometry.parent.feature.attributes['ms:gid']
-Steve
Roger Kunkel wrote:
>
> I'm having trouble accessing the attributes in a GML feature.
> My mapserver gml attribute labels like "ms:gid" etc
>
> I'm trying to get at them with:
>
> geometry.parent.feature.attributes.ms:gid
>
> without luck (syntax error?)
>
> I'm using firebug to step through and watch things and I can see that
> the values are there, I just can't reference them in my code.
> I guess this is actually a javascript question.
>
>
> Roger Kunkel
> CERES Program
> Dept. of Land AIr & Water Resources
> UC Davis
> rakunkel at ucdavis.edu <mailto:rakunkel at ucdavis.edu>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
More information about the Users
mailing list