Hi all,<div><br></div><div>Sorry to bug you all with a pretty simple question. I have a shp file converted to GML, with an attribute called &quot;name.&quot; I&#39;d like for this to be places as a label by the polygon feature. I think, based on my digging around on the lists that I need a function to first get the <a href="http://feature.attributes.Name">feature.attributes.Name</a>, which would then pass it to the label. Does anyone have a good example of this, or suggestions on implementation?</div>
<div><br></div><div><div>var cities = new OpenLayers.Layer.GML (&quot;7th Century Cities&quot;, &quot;data/cities.gml&quot;,</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>{</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>style: {strokeWidth:1, strokeColor:&quot;#CCCCCC&quot;, fillColor: &quot;green&quot;},</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>projection: new OpenLayers.Projection(&quot;EPSG:4326&quot;),</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>format: OpenLayers.Format.GML,</div>
<div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;">
 <span class="Apple-style-span" style="background-color: rgb(255, 255, 102);"> label: &quot;$name&quot;,</span></blockquote></blockquote></blockquote></div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>}</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>);</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>map.addLayer(cities);</div><div><br></div><br>-- <br>Nicholas Efremov-Kendall<br>
Fulbright Student 2009-2010, Ukraine<br><a href="mailto:nefremov@artsci.wustl.edu">nefremov@artsci.wustl.edu</a><br>c/o Halyna Yerko<br>Balzaka 92a, Kv 27<br>02232<br>Kyiv, Ukraine<br>(mob) +380963576524<br>
</div>