2StepForward wrote: > > Hi List, > > I have a beginners question to you. > My problem is to understand how to work vector layers, especially how to > work vector features. > > What is base I have work: > > - I have some features (point geometry) into a PostGIS-database. > - At the moment I use a WFS layer with a subclassed featureClass to > include custom icons. > This subclassed featureClass use a Marker-object to reference the icon. > > Like this: > > var wfs = new OpenLayers.Layer.WFS( "EM", "http://server/geoserver/wfs?", > { typename: 'WFS:em'}, > { > featureClass: OpenLayers.Feature.Pic, > clientData: {picUrlRoot: > "http://server/geoserver/prototyp/img/"} > }); > map.addLayer(wfs); > > this works fine. With a specific column in the database table (PostGIS) of > the some feature I can describe which icon should be get to draw. The > column hold a name, like "building" and additionaly there will be append a > ".gif" to reference the picture on the server. > > My problem is: > > - I will support that the pictures could be drag by the user and finally > the changed possition of the point geometry, which was bind to the > picture, will be write back (updated) to the geomety column in the > database. > I have read the Marker object couldn't be draggable but vector features > into vector layers could be. > > The question is: > > - How is it possible to get the geometries of the features into the > database and put them into vector features. > - Is there no other way to get the features by wfs and write it to the > vector features for build up? > - Is this the right way to use Ajax to get the needed datas form the > database? > > I hope I have discribed my problem in that way if you could understand it. > > Thanks for every answer, > Klaus > -- View this message in context: http://www.nabble.com/WFS-vs.-Vector-tp16606554p16608587.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
