Thanks it's perfect for my application!!!<br><br>I just have to develop that :s<br><br>I have one question : It's possible to put an offset to the external graphic? Because images of markers (marker.png) are centered on the center of the image's marker and not on the bottom of the image's marker<br>
<br>I'm not sure I'm clear but it's difficult to explain this in English for my... Sorry <br><br><br>Cheers<br><br>Jim<br><br><div class="gmail_quote">2009/8/24 Alexandre Dube <span dir="ltr"><<a href="mailto:adube@mapgears.com">adube@mapgears.com</a>></span><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">Jimmy Aumard wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello, thanks for answers,<br>
<br>
My problème is I use markers and I put/update attributes on each in my database. I don't know how put or update attributes with vector layer (if you have an example I take it :D).<br>
</blockquote>
<br></div>
You need a server that supports transactions :<br>
<br>
- GeoServer<br>
- TinyOWS<br>
see the example : <a href="http://openlayers.org/dev/examples/wfs-protocol-transactions.html" target="_blank">http://openlayers.org/dev/examples/wfs-protocol-transactions.html</a><br>
<br>
- FeatureServer (uses MapFish protocol)<br>
see a demo : <a href="http://dev4.mapgears.com/bdga-fs/" target="_blank">http://dev4.mapgears.com/bdga-fs/</a><br>
<br>
The FS demo also shows a way to edit feature's attributes.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I use vector layer for polygon with DragFeature. I know this solution but points representation is a point an I use icon, It's possible to put an icon to a point with a vector layer?<br>
</blockquote>
<br></div>
Yes. Look at the following example and search the source for the externalGraphic property.<br>
<a href="http://openlayers.org/dev/examples/styles-unique.html" target="_blank">http://openlayers.org/dev/examples/styles-unique.html</a><br>
<br>
Regards,<br>
<br>
Alexandre<br>
<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">
<br>
Sorry for my english :s<br>
<br>
Cheers<br>
<br>
Jim<br>
<br>
<br></div>
2009/8/24 Eric Lemoine <<a href="mailto:eric.lemoine@camptocamp.com" target="_blank">eric.lemoine@camptocamp.com</a> <mailto:<a href="mailto:eric.lemoine@camptocamp.com" target="_blank">eric.lemoine@camptocamp.com</a>>><div class="im">
<br>
<br>
On Friday, August 21, 2009, Alexandre Dube <<a href="mailto:adube@mapgears.com" target="_blank">adube@mapgears.com</a><br></div><div class="im">
<mailto:<a href="mailto:adube@mapgears.com" target="_blank">adube@mapgears.com</a>>> wrote:<br>
> Hi,<br>
><br>
> One way to accomplish this is to use a Vector layer instead of a<br>
> Marker layer and use a ModifyFeature control do move your points<br>
> (markers) around.<br>
<br>
The DragFeature control may be of interest as well.<br>
<br>
<br>
<br>
<br>
--<br>
Eric Lemoine<br>
<br>
Camptocamp France SAS<br>
Savoie Technolac, BP 352<br>
73377 Le Bourget du Lac, Cedex<br>
<br>
Tel : 00 33 4 79 44 44 96<br>
Mail : <a href="mailto:eric.lemoine@camptocamp.com" target="_blank">eric.lemoine@camptocamp.com</a><br></div>
<mailto:<a href="mailto:eric.lemoine@camptocamp.com" target="_blank">eric.lemoine@camptocamp.com</a>><br>
<a href="http://www.camptocamp.com" target="_blank">http://www.camptocamp.com</a><br>
<br>
<br>
</blockquote>
<br><div><div></div><div class="h5">
<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>