iTowns / itowns

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

change in base_altitude use for definition of a global Style function. #2134

Closed ftoromanoff closed 11 months ago

ftoromanoff commented 1 year ago

The purpose of this PR is tho prepare for the possibility of using a global function for the style.

base_altitude is a Style sub-property for the positioning of feature on the elevation axe. In opposition to the other style sub-properties (apart from extruded_height) which are used at the convert phase, base_altitude is used at the feature Instanciation (during the parsing).

To be able to use a global function for style we thus need to find a way to move base_altitde properties out of the style used during the convert.