@@ -24,38 +24,6 @@ export var TemplatedFeaturesOrTilesLayerGroup = LayerGroup.extend({
24
24
delete options . zoomBounds ;
25
25
delete options . extentBounds ;
26
26
27
- // Initialize the layers
28
- this . _initLayers ( ) ;
29
- } ,
30
-
31
- /**
32
- * Initialize the feature and tile layers
33
- * @private
34
- */
35
- _initLayers : function ( ) {
36
- // Create feature layer for map-feature elements
37
- this . _features = featureLayer ( null , {
38
- renderer : this . options . renderer ,
39
- pane : this . _container ,
40
- layerBounds : this . extentBounds ,
41
- zoomBounds : this . zoomBounds ,
42
- opacity : this . options . opacity || 1 ,
43
- projection : this . options . projection ,
44
- mapEl : this . _linkEl . getMapEl ( ) ,
45
- onEachFeature : this . _setupPopup . bind ( this )
46
- } ) ;
47
-
48
- // Create tile layer for map-tile elements
49
- this . _tiles = mapTileLayer ( {
50
- pane : this . _container ,
51
- projection : this . options . projection ,
52
- zoomBounds : this . zoomBounds ,
53
- opacity : this . options . opacity || 1
54
- } ) ;
55
-
56
- // Add layers to the group
57
- this . addLayer ( this . _features ) ;
58
- this . addLayer ( this . _tiles ) ;
59
27
} ,
60
28
61
29
/**
0 commit comments