File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ leaflet 2.0.0.9000
44BUG FIXES
55
66* `.leaflet-map-pane` `z-index` switched to 'auto'. Allows for map panes to appear above the map if they appear later in the dom. (#537)
7+ * Use correct Leaflet.js scale control remove method (#547)
8+
79
810leaflet 2.0.0
911--------------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -2058,7 +2058,7 @@ methods.addScaleBar = function (options) {
20582058
20592059methods . removeScaleBar = function ( ) {
20602060 if ( this . currentScaleBar ) {
2061- this . currentScaleBar . removeFrom ( this ) ;
2061+ this . currentScaleBar . remove ( ) ;
20622062 this . currentScaleBar = null ;
20632063 }
20642064} ;
Original file line number Diff line number Diff line change @@ -896,7 +896,7 @@ methods.addScaleBar = function(options) {
896896
897897methods . removeScaleBar = function ( ) {
898898 if ( this . currentScaleBar ) {
899- this . currentScaleBar . removeFrom ( this ) ;
899+ this . currentScaleBar . remove ( ) ;
900900 this . currentScaleBar = null ;
901901 }
902902} ;
You can’t perform that action at this time.
0 commit comments