@@ -119,13 +119,11 @@ export var MapMLLayer = L.Layer.extend({
119119 extentEl : extentEl . _DOMnode || extentEl
120120 } ) . addTo ( this . _map ) ;
121121 extentEl . templatedLayer . setZIndex ( ) ;
122- this . _setLayerElExtent ( ) ;
123122 }
124123 } else {
125124 L . DomEvent . stopPropagation ( e ) ;
126125 extentEl . checked = false ;
127126 if ( this . _layerEl . checked ) this . _map . removeLayer ( extentEl . templatedLayer ) ;
128- this . _setLayerElExtent ( ) ;
129127 }
130128 } ,
131129 titleIsReadOnly ( ) {
@@ -187,7 +185,6 @@ export var MapMLLayer = L.Layer.extend({
187185 this
188186 ) ;
189187 }
190- this . _setLayerElExtent ( ) ;
191188
192189 this . setZIndex ( this . options . zIndex ) ;
193190 this . getPane ( ) . appendChild ( this . _container ) ;
@@ -261,7 +258,7 @@ export var MapMLLayer = L.Layer.extend({
261258 } ,
262259
263260 //sets the <layer-> elements .bounds property
264- _setLayerElExtent : function ( ) {
261+ _getExtent : function ( ) {
265262 let bounds ,
266263 zoomMax ,
267264 zoomMin ,
@@ -405,8 +402,7 @@ export var MapMLLayer = L.Layer.extend({
405402 }
406403 } ) ;
407404 if ( bounds ) {
408- //assigns the formatted extent object to .extent and spreads the zoom ranges to .extent also
409- this . _layerEl . extent = Object . assign (
405+ return Object . assign (
410406 M . _convertAndFormatPCRS ( bounds , this . _properties . crs ) ,
411407 { zoom : zoomBounds , projection : this . _properties . projection }
412408 ) ;
0 commit comments