Trivial - reorder methods & comment

This commit is contained in:
Alexandre Dubé
2015-03-26 14:48:44 -04:00
parent 49a3f0a0b7
commit 5bffa99e83
2 changed files with 249 additions and 243 deletions

View File

@@ -140,10 +140,9 @@ optionsForm.onchange = function(e) {
Draw.setActive(true);
Modify.setActive(false);
// snap duplicates the geometries so it can create a index.
// when a gemetry is modified, index needs to be rebuild for that
// geometry by removeing the old and adding the new
// The snap interaction must be added after the Modify and Draw interactions
// in order for its map browser event handlers to be fired first. Its handlers
// are responsible of doing the snapping.
var snap = new ol.interaction.Snap({
features: featureOverlay.getFeatures()
});