how to set tileOptions of a layer #498
-
I want to make a tile layer how could i do ? |
Beta Was this translation helpful? Give feedback.
Answered by
ghettovoice
May 12, 2022
Replies: 1 comment
-
Hello @scil , // tiled WMS source
<vl-layer-tile>
<vl-source-tile-wms cross-origin="anonymous" ... />
</vl-layer-tile>
// XYZ source
<vl-layer-tile>
<vl-source-xyz cross-origin="anonymous" ... />
</vl-layer-tile> |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
scil
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @scil ,
starting from the openlayers v3 cross-origin options was moved in to the source component.
So in vuelayers each tile image source component has a prop
crossOrigin
. You can set it toanonymous
to avoid CORS issues with tile layers.