File tree Expand file tree Collapse file tree 1 file changed +14
-13
lines changed
Expand file tree Collapse file tree 1 file changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -146,19 +146,20 @@ MapEntity.GeometryField.GeometryFieldSnap = MapEntity.GeometryField.extend({
146146 } , this ) ;
147147
148148 // On edition, show start and end markers as snapped
149- this . _map . on ( 'draw:editstart' , function ( e ) {
150- setTimeout ( function ( ) {
151- if ( ! layer . editing ) {
152- console . warn ( 'Layer has no snap editing' ) ;
153- return ; // should never happen ;)
154- }
155- var markers = layer . editing . _markers ;
156- var first = markers [ 0 ] ,
157- last = markers [ markers . length - 1 ] ;
158- first . fire ( 'move' ) ;
159- last . fire ( 'move' ) ;
160- } , 0 ) ;
161- } ) ;
149+ // FIXME: disabled temporarily
150+ // this._map.on('draw:editstart', function (e) {
151+ // setTimeout(function () {
152+ // if (!layer.editing) {
153+ // console.warn('Layer has no snap editing');
154+ // return; // should never happen ;)
155+ // }
156+ // var markers = layer.editing._markers;
157+ // var first = markers[0],
158+ // last = markers[markers.length - 1];
159+ // first.fire('move');
160+ // last.fire('move');
161+ // }, 0);
162+ // });
162163
163164 } ,
164165
You can’t perform that action at this time.
0 commit comments