Skip to content

Commit 2357893

Browse files
aleksmelnykd-koppenhagen
authored andcommitted
Update SourceWMTS.vue
1 parent 9127b5b commit 2357893

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/sources/SourceWMTS.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default {
2828
2929
for (let z = 0; z < properties.tileZoomLevel; ++z) {
3030
resolutions[z] = size.value / Math.pow(2, z);
31-
matrixIds[z] = z;
31+
matrixIds[z] = props.tileMatrixPrefix + z;
3232
}
3333
3434
return new WMTSTileGrid({
@@ -133,6 +133,10 @@ export default {
133133
layer: {
134134
type: String,
135135
},
136+
tileMatrixPrefix: {
137+
type: String,
138+
default: ''
139+
},
136140
styles: {
137141
type: [String, Array, Function],
138142
},

0 commit comments

Comments
 (0)