Open AnthonyGlt opened 3 months ago
I would like to chose the size of the rendered texture for my MVT layer.
Right now the size of the texture in the function createTextureFromFeature is fixed when it's called from textureConverter.js https://github.com/iTowns/itowns/blob/9be39b70c082283916af2dd09a9b334bd3b210f9/src/Converter/textureConverter.js#L31
createTextureFromFeature
It could be a nice improvement to make it customizable at the creation of the layer or the source. Something like layer.textureSize so it could be set to 512.
layer.textureSize
I would like to chose the size of the rendered texture for my MVT layer.
Context
Right now the size of the texture in the function
createTextureFromFeature
is fixed when it's called from textureConverter.js https://github.com/iTowns/itowns/blob/9be39b70c082283916af2dd09a9b334bd3b210f9/src/Converter/textureConverter.js#L31It could be a nice improvement to make it customizable at the creation of the layer or the source. Something like
layer.textureSize
so it could be set to 512.