hi <br>i got some idea about what to do now . but problem is can i pass a variable as an attirbute to wfs layer ?? i mean i want to pass as an attribute variable (style_text.label) which contains text tht i am getting. can it b done ??and how ?<br>
<br>thanks <br><br><div class="gmail_quote">On Mon, Jan 11, 2010 at 7:01 PM, Alexandre Dube <span dir="ltr">&lt;<a href="mailto:adube@mapgears.com">adube@mapgears.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Alauddin,<br>
<br>
 Please, reply to the list as many other might be able to help you.<br>
<br>
 Please, take a look at the following example [1].  In it, you have a vector layer configured to a WFS-T server to allow transactions.  OpenLayers is responsible of generating the transaction by AJAX on commit.  Look at the code of the example for more.<br>

<br>
 If it can help, I also made a WFS-T little demo a year ago.  The OpenLayers version is outdated, but it might help too [2].  It uses TinyOWS as the WFS-T server (instead of GeoServer) though.<br>
<br>
 Hope it helps,<br>
<br>
Alexandre<br>
<br>
<br>
[1] <a href="http://openlayers.org/dev/examples/wfs-protocol-transactions.html" target="_blank">http://openlayers.org/dev/examples/wfs-protocol-transactions.html</a><br>
[2] <a href="http://dev4.mapgears.com/bdga/bdgaWFS-T.html" target="_blank">http://dev4.mapgears.com/bdga/bdgaWFS-T.html</a><br>
<br>
Alauddin Khan wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
sorry i am new to mapping and this openlayers geoserver thing so i could not pick up wht u r saying what i really want is to let user write nething i-e label comment joke etc etc on the  map displayed nd then save it,  add it to database and latter on same text as displayed as a wfs layer . i mean map is displayed as wms layer then we hav 3 layers  for point line and polygon giving user capability to draw line polygon or point and save it now i want to add another layer named as text layer which enables to write on the map ne comments note or label etc which is u kno then saved can i do this with open layers ? Mr imran rajjad from geoserver list suggested me below four point strategy which i could not follow up completly his suggestion was<br>

<br>
1-create a shape file with point geometry and upload it on geoserver,make sure you keep a field in the attributes for your label.<br>
2-write a function that takes  X,Y of click and the text you wish to display<br>
3-insert that point where you clicked on map along with the text into the shape file          4-create an SLD for this shape file in which you add text symbolizer and set it to display the field containing you label.<br>

 but i got stuck at point 3 .dont know how to move things forward. please help thanks<br>
<br>
Regards<br>
Alauddin<br>
<br></div><div class="im">
On Fri, Jan 8, 2010 at 6:28 PM, Alexandre Dube &lt;<a href="mailto:adube@mapgears.com" target="_blank">adube@mapgears.com</a> &lt;mailto:<a href="mailto:adube@mapgears.com" target="_blank">adube@mapgears.com</a>&gt;&gt; wrote:<br>

<br>
    Hi,<br>
<br>
     Take a look at this example [1].  Labels are added to features as<br>
    symbolizer properties, so you could set one of the feature&#39;s<br>
    attribute as a value for your label by using ${name} (see the same<br>
    example).<br>
<br>
     Hope this helps,<br>
<br>
    Alexandre<br>
<br>
    [1] <a href="http://openlayers.org/dev/examples/vector-features-with-text.html" target="_blank">http://openlayers.org/dev/examples/vector-features-with-text.html</a><br>
<br>
<br>
    Alauddin Khan wrote:<br>
<br>
        hi ALL ,<br>
                  hop u all fin and in good health. i want to  write<br>
        text on my map ( may b some information about a place) and<br>
        then save it so that next time i use my map the text is<br>
        visible there . i know u can use wfs to add new features but<br>
        how will i add text as a new wfs layer in geoserver<br>
<br>
        thanks<br>
        Regards<br>
        Alauddin<br>
<br>
        ------------------------------------------------------------------------<br>
<br>
        _______________________________________________<br>
        Users mailing list<br></div>
        <a href="mailto:Users@openlayers.org" target="_blank">Users@openlayers.org</a> &lt;mailto:<a href="mailto:Users@openlayers.org" target="_blank">Users@openlayers.org</a>&gt;<div class="im"><br>
        <a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
         <br>
<br>
<br>
    --     Alexandre Dubé<br>
    Mapgears<br></div>
    <a href="http://www.mapgears.com" target="_blank">www.mapgears.com</a> &lt;<a href="http://www.mapgears.com" target="_blank">http://www.mapgears.com</a>&gt;<br>
<br>
<br>
</blockquote><div><div></div><div class="h5">
<br>
<br>
-- <br>
Alexandre Dubé<br>
Mapgears<br>
<a href="http://www.mapgears.com" target="_blank">www.mapgears.com</a><br>
<br>
</div></div></blockquote></div><br>