<div class="gmail_extra">Hi,</div><div class="gmail_extra"><br></div><div class="gmail_extra">add data of shape file to webpage? you want to show labels on the map or the actual data behind features? For actual data you will need to make wfs call with appropriate parameters .</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">regards,</div><div class="gmail_extra">Imran<br><br><div class="gmail_quote">On Thu, Apr 26, 2012 at 10:15 AM, sacprasanna <span dir="ltr">&lt;<a href="mailto:sacprasanna@gmail.com" target="_blank">sacprasanna@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I am new to OpenLayers and I want to add the attribute data of a shape<br>
file(WMS) to the webpage. I can add a GeoServer WMS to the website but not<br>
attribute data.<br>
<br>
I also see the source code of GeoServer OpenLayers page and still I can&#39;t<br>
find the code?<br>
<br>
Please give me some sample code.<br>
<br>
This is my GeoServer WMS URL:<br>
<br>
<a href="http://localhost:8080/geoserver/sac/wms" target="_blank">http://localhost:8080/geoserver/sac/wms</a>?<br>
service=WMS&amp;<br>
version=1.1.0&amp;<br>
request=GetMap&amp;<br>
layers=sac:contour&amp;<br>
styles=&amp;<br>
bbox=187754.5,204980.703125,192031.40625,210022.890625&amp;<br>
width=434&amp;height=512&amp;s<br>
rs=EPSG:5235&amp;<br>
format=application/openlayers<br>
Or should I create WFS?<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.n6.nabble.com/attribute-data-of-a-shape-file-WMS-tp4929655p4929655.html" target="_blank">http://osgeo-org.1560.n6.nabble.com/attribute-data-of-a-shape-file-WMS-tp4929655p4929655.html</a><br>

Sent from the OpenLayers Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>I.R<br>
</div>