512 Tiles
#444
Replies: 1 comment 2 replies
-
Hello @scadergit ,
<template>
<vl-map>
<vl-layer-tile>
<vl-source-tile-wms :tile-grid-factory="customGridFactory" />
</vl-layer-tile>
</vl-map>
</template>
<script>
import { createXYZ } from 'ol/tilegrid'
export default {
methods: {
customGridFactory () {
return createXYZ({
tileSize: [512, 512],
})
},
},
}
</script> |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It seems to make OL request 512 tiles, you have to pass an ol/tileGrid object in the ol/TileWMS source constructor. There doesn't seem to be a tile grid component in VueLayers, so do I have to import the OL tileGrid object in my component and pass a function factory to the VL wms source component?
Actually, I was looking at master, and in 0.11.28 there is a property for tileSize...
Beta Was this translation helpful? Give feedback.
All reactions