Thanks for this informations!!<br><br>It&#39;s work correctly with:<br><br>graphicWidth: 20,<br>graphicHeight: 34,<br>graphicXOffset: -10,<br>graphicYOffset: -34,<br>externalGraphic: &quot;../../images/marker.png&quot;<br>
<br>Cheers<br><br>Jim<br><br><div class="gmail_quote">2009/8/24 Alexandre Dube <span dir="ltr">&lt;<a href="mailto:adube@mapgears.com">adube@mapgears.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<div class="im"><br>
<br>
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;">
Thanks it&#39;s perfect for my application!!!<br>
<br>
I just have to develop that :s<br>
<br>
I have one question : It&#39;s possible to put an offset to the external graphic? Because images of markers (marker.png) are centered on the center of the image&#39;s marker and not on the bottom of the image&#39;s marker<br>

<br>
</blockquote>
<br></div>
check in lib/OpenLayers/Feature/Vector.js at the end.  All properties are there, so check the following to do what you need :<br>
<br>
* graphicXOffset - {Number} Pixel offset along the positive x axis for displacing an external graphic.<br>
* graphicYOffset - {Number} Pixel offset along the positive y axis for displacing an external graphic.<br>
<br>
Never tried this, but I definitively will soon.<br>
<br>
Best 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">
I&#39;m not sure I&#39;m clear but it&#39;s difficult to explain this in English for my...  Sorry<br>
<br>
<br>
Cheers<br>
<br>
Jim<br>
<br></div>
2009/8/24 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;<div><div></div><div class="h5">
<br>
<br>
    Jimmy Aumard wrote:<br>
<br>
        Hello, thanks for answers,<br>
<br>
        My problème is I use markers and I put/update attributes on<br>
        each in my database. I don&#39;t know how put or update attributes<br>
        with vector layer (if you have an example I take it :D).<br>
<br>
<br>
    You need a server that supports transactions :<br>
<br>
     - GeoServer<br>
     - TinyOWS<br>
     see the example :<br>
    <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&#39;s attributes.<br>
<br>
<br>
        I use vector layer for polygon with DragFeature. I know this<br>
        solution but points representation is a point an I use icon,<br>
        It&#39;s possible to put an icon to a point with a vector layer?<br>
<br>
<br>
    Yes.  Look at the following example and search the source for the<br>
    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>
<br>
        Sorry for my english :s<br>
<br>
        Cheers<br>
<br>
        Jim<br>
<br>
<br>
        2009/8/24 Eric Lemoine &lt;<a href="mailto:eric.lemoine@camptocamp.com" target="_blank">eric.lemoine@camptocamp.com</a><br>
        &lt;mailto:<a href="mailto:eric.lemoine@camptocamp.com" target="_blank">eric.lemoine@camptocamp.com</a>&gt;<br></div></div>
        &lt;mailto:<a href="mailto:eric.lemoine@camptocamp.com" target="_blank">eric.lemoine@camptocamp.com</a><div class="im"><br>
        &lt;mailto:<a href="mailto:eric.lemoine@camptocamp.com" target="_blank">eric.lemoine@camptocamp.com</a>&gt;&gt;&gt;<br>
<br>
<br>
           On Friday, August 21, 2009, Alexandre Dube<br>
        &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;<br></div><div class="im">
           &lt;mailto:<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;&gt; wrote:<br>
           &gt; Hi,<br>
           &gt;<br>
           &gt;   One way to accomplish this is to use a Vector layer<br>
        instead of a<br>
           &gt; Marker layer and use a ModifyFeature control do move your<br>
        points<br>
           &gt; (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>
        &lt;mailto:<a href="mailto:eric.lemoine@camptocamp.com" target="_blank">eric.lemoine@camptocamp.com</a>&gt;<br></div>
           &lt;mailto:<a href="mailto:eric.lemoine@camptocamp.com" target="_blank">eric.lemoine@camptocamp.com</a><div class="im"><br>
        &lt;mailto:<a href="mailto:eric.lemoine@camptocamp.com" target="_blank">eric.lemoine@camptocamp.com</a>&gt;&gt;<br>
           <a href="http://www.camptocamp.com" target="_blank">http://www.camptocamp.com</a><br>
<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>