Thanks for this informations!!<br><br>It's work correctly with:<br><br>graphicWidth: 20,<br>graphicHeight: 34,<br>graphicXOffset: -10,<br>graphicYOffset: -34,<br>externalGraphic: "../../images/marker.png"<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;">
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'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>
</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'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>
2009/8/24 Alexandre Dube <<a href="mailto:adube@mapgears.com" target="_blank">adube@mapgears.com</a> <mailto:<a href="mailto:adube@mapgears.com" target="_blank">adube@mapgears.com</a>>><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'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'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'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 <<a href="mailto:eric.lemoine@camptocamp.com" target="_blank">eric.lemoine@camptocamp.com</a><br>
<mailto:<a href="mailto:eric.lemoine@camptocamp.com" target="_blank">eric.lemoine@camptocamp.com</a>><br></div></div>
<mailto:<a href="mailto:eric.lemoine@camptocamp.com" target="_blank">eric.lemoine@camptocamp.com</a><div class="im"><br>
<mailto:<a href="mailto:eric.lemoine@camptocamp.com" target="_blank">eric.lemoine@camptocamp.com</a>>>><br>
<br>
<br>
On Friday, August 21, 2009, Alexandre Dube<br>
<<a href="mailto:adube@mapgears.com" target="_blank">adube@mapgears.com</a> <mailto:<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> <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<br>
instead of a<br>
> Marker layer and use a ModifyFeature control do move your<br>
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>
<mailto:<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><div class="im"><br>
<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>
<br>
<br>
-- Alexandre Dubé<br>
Mapgears<br></div>
<a href="http://www.mapgears.com" target="_blank">www.mapgears.com</a> <<a href="http://www.mapgears.com" target="_blank">http://www.mapgears.com</a>><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>