0

Is there any way to edit coordinates of the point manually? I want to edit a point just like I create:

var point = new OpenLayers.Geometry.Point(newX,newY);
var point_ft = new OpenLayers.Feature.Vector(point, null, null);
warstwaRysowania.addFeatures(point_ft);

Can I do it similar to this example? If yes please tell me how. I want to work on the existing feature.

sfletche
  • 47,248
  • 30
  • 103
  • 119
Robert
  • 140
  • 1
  • 8

1 Answers1

1

Ok, I got a solution:

 function(e) {
            console.log(e.feature.geometry);
            var newPoint = new OpenLayers.LonLat(myX, myY);
            e.feature.move(newPoint);
            }
Robert
  • 140
  • 1
  • 8