planetfederal / wps-gui

Graphical User Interface (Model Builder) for OGC:WPS (Web Processing Services)
http://boundlessgeo.com
Apache License 2.0
27 stars 15 forks source link

Editing geometry #126

Closed sbalasub closed 10 years ago

sbalasub commented 10 years ago

while editing geometry on a map, on first click & drag, the map moves around instead of drawing a line.

steps to reproduce:

1.For intersection process, draw geometries for inputs a and b and execute the process

  1. Click on geometry a and edit that geometry.

Instead of starting to create the new geometry replacing the old one, the whole map moves. But on clicking again the geometry can be drawn.

bartvde commented 10 years ago

A js error is triggered here:

ol.structs.RBush.prototype.remove = function(value) {
  if (goog.DEBUG && this.readers_) {
    throw new Error('cannot remove value while reading');
  }
bartvde commented 10 years ago

ah I see the issue it's because I remove the feature whilst being in a forEachFeature loop

bartvde commented 10 years ago

good catch