Skip to content

Commit 142a8d9

Browse files
committed
New build
1 parent 502e990 commit 142a8d9

File tree

3 files changed

+34
-27
lines changed

3 files changed

+34
-27
lines changed

dist/vue-mapbox.common.js

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4847,14 +4847,17 @@ module.exports = /******/ (function(modules) {
48474847
if (this.filter) layer.filter = this.filter;
48484848
}
48494849

4850-
layer.paint = this.paint
4851-
? this.paint
4852-
: {
4853-
"fill-color": "rgba(".concat(
4854-
12 * (this.layerId.length * 3),
4855-
",153,80,0.55)"
4856-
)
4857-
};
4850+
if (this.type !== "symbol") {
4851+
layer.paint = this.paint
4852+
? this.paint
4853+
: {
4854+
"fill-color": "rgba(".concat(
4855+
12 * (this.layerId.length * 3),
4856+
",153,80,0.55)"
4857+
)
4858+
};
4859+
}
4860+
48584861
layer.metadata = this.metadata;
48594862
this.map.addLayer(layer, this.before);
48604863
this.$_emitEvent("added", {
@@ -5016,7 +5019,7 @@ module.exports = /******/ (function(modules) {
50165019
}
50175020
},
50185021
computed: {
5019-
canvas: function canvas() {
5022+
canvasElement: function canvasElement() {
50205023
return this.mapSource ? this.mapSource.getCanvas() : null;
50215024
}
50225025
},

dist/vue-mapbox.umd.js

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4904,14 +4904,17 @@
49044904
if (this.filter) layer.filter = this.filter;
49054905
}
49064906

4907-
layer.paint = this.paint
4908-
? this.paint
4909-
: {
4910-
"fill-color": "rgba(".concat(
4911-
12 * (this.layerId.length * 3),
4912-
",153,80,0.55)"
4913-
)
4914-
};
4907+
if (this.type !== "symbol") {
4908+
layer.paint = this.paint
4909+
? this.paint
4910+
: {
4911+
"fill-color": "rgba(".concat(
4912+
12 * (this.layerId.length * 3),
4913+
",153,80,0.55)"
4914+
)
4915+
};
4916+
}
4917+
49154918
layer.metadata = this.metadata;
49164919
this.map.addLayer(layer, this.before);
49174920
this.$_emitEvent("added", {
@@ -5073,7 +5076,7 @@
50735076
}
50745077
},
50755078
computed: {
5076-
canvas: function canvas() {
5079+
canvasElement: function canvasElement() {
50775080
return this.mapSource ? this.mapSource.getCanvas() : null;
50785081
}
50795082
},

dist/vue-mapbox.umd.min.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3277,14 +3277,15 @@
32773277
this.maxzoom && (e.maxzoom = this.maxzoom),
32783278
this.layout && (e.layout = this.layout),
32793279
this.filter && (e.filter = this.filter)),
3280-
(e.paint = this.paint
3281-
? this.paint
3282-
: {
3283-
"fill-color": "rgba(".concat(
3284-
3 * this.layerId.length * 12,
3285-
",153,80,0.55)"
3286-
)
3287-
}),
3280+
"symbol" !== this.type &&
3281+
(e.paint = this.paint
3282+
? this.paint
3283+
: {
3284+
"fill-color": "rgba(".concat(
3285+
3 * this.layerId.length * 12,
3286+
",153,80,0.55)"
3287+
)
3288+
}),
32883289
(e.metadata = this.metadata),
32893290
this.map.addLayer(e, this.before),
32903291
this.$_emitEvent("added", { layerId: this.layerId });
@@ -3388,7 +3389,7 @@
33883389
height: { type: Number, default: 100 }
33893390
},
33903391
computed: {
3391-
canvas: function() {
3392+
canvasElement: function() {
33923393
return this.mapSource ? this.mapSource.getCanvas() : null;
33933394
}
33943395
},

0 commit comments

Comments
 (0)