Thanks for this informations!! It's work correctly with:
graphicWidth: 20, graphicHeight: 34, graphicXOffset: -10, graphicYOffset: -34, externalGraphic: "../../images/marker.png" Cheers Jim 2009/8/24 Alexandre Dube <[email protected]> > Hi, > > Jimmy Aumard wrote: > >> Thanks it's perfect for my application!!! >> >> I just have to develop that :s >> >> 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 >> >> > check in lib/OpenLayers/Feature/Vector.js at the end. All properties are > there, so check the following to do what you need : > > * graphicXOffset - {Number} Pixel offset along the positive x axis for > displacing an external graphic. > * graphicYOffset - {Number} Pixel offset along the positive y axis for > displacing an external graphic. > > Never tried this, but I definitively will soon. > > Best regards, > > Alexandre > > I'm not sure I'm clear but it's difficult to explain this in English for >> my... Sorry >> >> >> Cheers >> >> Jim >> >> 2009/8/24 Alexandre Dube <[email protected] <mailto:[email protected]>> >> >> >> Jimmy Aumard wrote: >> >> Hello, thanks for answers, >> >> 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). >> >> >> You need a server that supports transactions : >> >> - GeoServer >> - TinyOWS >> see the example : >> http://openlayers.org/dev/examples/wfs-protocol-transactions.html >> >> - FeatureServer (uses MapFish protocol) >> see a demo : http://dev4.mapgears.com/bdga-fs/ >> >> The FS demo also shows a way to edit feature's attributes. >> >> >> 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? >> >> >> Yes. Look at the following example and search the source for the >> externalGraphic property. >> http://openlayers.org/dev/examples/styles-unique.html >> >> Regards, >> >> Alexandre >> >> >> Sorry for my english :s >> >> Cheers >> >> Jim >> >> >> 2009/8/24 Eric Lemoine <[email protected] >> <mailto:[email protected]> >> <mailto:[email protected] >> <mailto:[email protected]>>> >> >> >> On Friday, August 21, 2009, Alexandre Dube >> <[email protected] <mailto:[email protected]> >> <mailto:[email protected] <mailto:[email protected]>>> wrote: >> > Hi, >> > >> > One way to accomplish this is to use a Vector layer >> instead of a >> > Marker layer and use a ModifyFeature control do move your >> points >> > (markers) around. >> >> The DragFeature control may be of interest as well. >> >> >> >> >> -- >> Eric Lemoine >> >> Camptocamp France SAS >> Savoie Technolac, BP 352 >> 73377 Le Bourget du Lac, Cedex >> >> Tel : 00 33 4 79 44 44 96 >> Mail : [email protected] >> <mailto:[email protected]> >> <mailto:[email protected] >> <mailto:[email protected]>> >> http://www.camptocamp.com >> >> >> >> >> -- Alexandre Dubé >> Mapgears >> www.mapgears.com <http://www.mapgears.com> >> >> >> > > -- > Alexandre Dubé > Mapgears > www.mapgears.com > >
_______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
