iTowns / itowns

A Three.js-based framework written in Javascript/WebGL for visualizing 3D geospatial data
http://www.itowns-project.org
Other
1.06k stars 290 forks source link

[Proposal] Custom convert texture size #2312

Open AnthonyGlt opened 3 months ago

AnthonyGlt commented 3 months ago

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#L31

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.