File tree Expand file tree Collapse file tree 3 files changed +1
-21
lines changed Expand file tree Collapse file tree 3 files changed +1
-21
lines changed Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ export class MapLayer extends HTMLElement {
222
222
// user checking/unchecking the layer from the layer control
223
223
// this must be done *after* the layer is actually added to the map
224
224
this . _layer . on ( 'add remove' , this . _onLayerChange , this ) ;
225
- this . _layer . on ( 'add remove foo ' , this . _validateDisabled , this ) ;
225
+ this . _layer . on ( 'add remove' , this . _validateDisabled , this ) ;
226
226
// toggle the this.disabled attribute depending on whether the layer
227
227
// is: same prj as map, within view/zoom of map
228
228
this . _layer . _map . on ( 'moveend layeradd' , this . _validateDisabled , this ) ;
Original file line number Diff line number Diff line change @@ -63,7 +63,6 @@ export var LayerControl = L.Control.Layers.extend({
63
63
// on the map it does not generate layer events
64
64
for ( var i = 0 ; i < this . _layers . length ; i ++ ) {
65
65
this . _layers [ i ] . layer . off ( 'add remove' , this . _onLayerChange , this ) ;
66
- this . _layers [ i ] . layer . off ( 'foo' , this . _validateInput , this ) ;
67
66
}
68
67
} ,
69
68
addOrUpdateOverlay : function ( layer , name ) {
@@ -163,11 +162,6 @@ export var LayerControl = L.Control.Layers.extend({
163
162
obj . input . layerId = L . stamp ( obj . layer ) ;
164
163
165
164
L . DomEvent . on ( obj . input , 'click' , this . _onInputClick , this ) ;
166
- // this is necessary because when there are several layers in the
167
- // layer control, the response to the last one can be a long time
168
- // after the info is first displayed, so we have to go back and
169
- // verify the layer element is not disabled and can have an enabled input.
170
- obj . layer . on ( 'foo' , this . _validateInput , this ) ;
171
165
this . _overlaysList . appendChild ( layercontrols ) ;
172
166
return layercontrols ;
173
167
} ,
Original file line number Diff line number Diff line change @@ -174,19 +174,6 @@ export var MapMLLayer = L.Layer.extend({
174
174
this . _properties . _mapExtents [ 0 ] . _templateVars
175
175
) {
176
176
createAndAdd ( ) ;
177
- } else {
178
- // wait for extent to be loaded
179
- this . once (
180
- 'foo' ,
181
- function ( ) {
182
- if ( ! this . _validProjection ( map ) ) {
183
- this . validProjection = false ;
184
- return ;
185
- }
186
- createAndAdd ( ) ;
187
- } ,
188
- this
189
- ) ;
190
177
}
191
178
this . _setLayerElExtent ( ) ;
192
179
@@ -896,7 +883,6 @@ export var MapMLLayer = L.Layer.extend({
896
883
// if layer does not have a parent Element, do not need to set Controls
897
884
layer . _layerEl . parentElement . _toggleControls ( ) ;
898
885
}
899
- layer . fire ( 'foo' , layer , false ) ;
900
886
// local functions
901
887
// sets layer._properties.projection. Supposed to replace / simplify
902
888
// the dependencies on convoluted getProjection() interface, but doesn't quite
You can’t perform that action at this time.
0 commit comments