Skip to content

Commit 6f69c75

Browse files
committed
WIP on map-tile, TemplatedFeaturesOrTilesLayerGroup, map-link
remove redundant method from TemplatedFeaturesOrTilesLayerGroup
1 parent 7cec6c5 commit 6f69c75

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

src/mapml/layers/TemplatedFeaturesOrTilesLayerGroup.js

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -24,38 +24,6 @@ export var TemplatedFeaturesOrTilesLayerGroup = LayerGroup.extend({
2424
delete options.zoomBounds;
2525
delete options.extentBounds;
2626

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);
5927
},
6028

6129
/**

0 commit comments

Comments
 (0)