Skip to content

Commit bd6ef67

Browse files
prushforprushfor
authored andcommitted
Apply temporary patch to get multipleExtents.test.js working in debug mode
1 parent 633c4ae commit bd6ef67

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/mapml/layers/FeatureLayer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export var FeatureLayer = L.FeatureGroup.extend({
5858
this.addData(mapml, native.cs, native.zoom);
5959
} else if (!mapml) {
6060
this.isVisible = false;
61-
this.layerBounds = this.options.extent ? this.options.extent : null;
61+
this.bounds = this.options.bounds ? this.options.bounds : null;
6262
this.zoomBounds = this.options.zoomBounds;
6363
}
6464
},

src/mapml/layers/TemplatedFeaturesLayer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export var TemplatedFeaturesLayer = L.Layer.extend({
3636
// it will append its own container for rendering into
3737
pane: container,
3838
// the extent will be static, fixed, constant for the lifetime of the layer
39-
extent: this.extentBounds,
39+
bounds: this.extentBounds,
4040
opacity: opacity,
4141
projection: map.options.projection,
4242
static: true,

src/mapml/layers/TemplatedTileLayer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ export var TemplatedTileLayer = L.TileLayer.extend({
166166
let tileFeatures = M.featureLayer(null, {
167167
projection: this._map.options.projection,
168168
static: false,
169+
bounds: this.extentBounds,
169170
interactive: false
170171
});
171172

0 commit comments

Comments
 (0)