File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2256,14 +2256,14 @@ methods.addMeasure = function (options) {
2256
2256
// if a measureControl already exists, then remove it and
2257
2257
// replace with a new one
2258
2258
if ( this . measureControl ) {
2259
- this . measureControl . removeFrom ( this ) ;
2259
+ this . removeControl ( this . measureControl ) ;
2260
2260
}
2261
2261
this . measureControl = _leaflet2 . default . control . measure ( options ) ;
2262
2262
this . measureControl . addTo ( this ) ;
2263
2263
} ;
2264
2264
2265
2265
methods . removeMeasure = function ( ) {
2266
- this . measureControl . removeFrom ( this ) ;
2266
+ this . removeControl ( this . measureControl ) ;
2267
2267
delete this . measureControl ;
2268
2268
} ;
2269
2269
Original file line number Diff line number Diff line change @@ -1191,14 +1191,14 @@ methods.addMeasure = function(options){
1191
1191
// if a measureControl already exists, then remove it and
1192
1192
// replace with a new one
1193
1193
if ( this . measureControl ) {
1194
- this . measureControl . removeFrom ( this ) ;
1194
+ this . removeControl ( this . measureControl ) ;
1195
1195
}
1196
1196
this . measureControl = L . control . measure ( options ) ;
1197
1197
this . measureControl . addTo ( this ) ;
1198
1198
} ;
1199
1199
1200
1200
methods . removeMeasure = function ( ) {
1201
- this . measureControl . removeFrom ( this ) ;
1201
+ this . removeControl ( this . measureControl ) ;
1202
1202
delete this . measureControl ;
1203
1203
} ;
1204
1204
You can’t perform that action at this time.
0 commit comments