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.
Ok, I got a solution:
function(e) {
console.log(e.feature.geometry);
var newPoint = new OpenLayers.LonLat(myX, myY);
e.feature.move(newPoint);
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.