[OpenLayers-Users] Change line and point
adidas
xkadidas at gmail.com
Sun Nov 25 03:41:35 PST 2012
Hello! How to keep new coordinates in db when the user moved a point?
So I create points:
/ var layerNodes = new OpenLayers.Layer.Vector("Nodes", {//
// strategies : [new OpenLayers.Strategy.BBOX({resFactor:
1.1})],//
// protocol : new OpenLayers.Protocol.HTTP({//
// url : "get_layers.php?mode=GetNodesMarkers",//
// format : new OpenLayers.Format.Text()//
// })//
// });//
// map.addLayer(layerNodes);/
And how to make line change (it is necessary, that the user could extend
line) and to keep new coordinates in a DB?
So i create the line:
/lineLayer = new OpenLayers.Layer.Vector("Lines");//
// map.addLayer(lineLayer);//
// var line = new OpenLayers.Geometry.LineString(points);//
// line.transform(new OpenLayers.Projection("EPSG:4326"), new
OpenLayers.Projection("EPSG:900913"));//
// var lineFeature = new OpenLayers.Feature.Vector(line, null,
style_arr[CableLine_arr[k]['style']]);//
// lineLayer.addFeatures([lineFeature]);/
Movement of lines and points I plan to do, as here:
http://openlayers.org/dev/examples/drag-feature.html
Thanks for answers!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20121125/9e973b35/attachment.html>
More information about the Users
mailing list