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!
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to