Skip to content

Release 2.26.0

Compare
Choose a tag to compare
@gchoqueux gchoqueux released this 06 Oct 13:09
· 797 commits to master since this release

WebGL 2.0

iTowns supports WebGL 2.0 and is enabled by default.
If you want instance instance with WebGL 1.0 use option renderer: { isWebGL2: false } to instance the viewer.

// for GlobeView
const gView = new GlobeView(viewerDiv, placement, {  renderer: { isWebGL2: false } });

// for PlanarView
const pView = new PlanarView(viewerDiv, extent, {  renderer: { isWebGL2: false } });

// for View
const view = new View(crs, viewerDiv, {  renderer: { isWebGL2: false } });

// is version webgl 2 after instance?
const isWebGL2 = view.mainLoop.gfxEngine.renderer.capabilities.isWebGL2;

Deprecated:

  • Source.projection and Layer.projection properties are deprecated. Use crs instead of projection.
  • FileSource.parsedData is deprecated replace by FileSource.features.

feature

  • Webgl: add support WebGl 2.0. (b3aa2ff)

Code Refactoring

  • Core: rename all properties 'projection' by 'crs'. (15bc424)
  • examples: remove multi-instance source. (2984f03)
  • geometry: adjust index buffer size to vertex count. (9132e74)
  • picking: avoid to instance typed array for each full depth buffer. (ac2e800)
  • test: add unit tests and error handling. (0d612a4)
  • Provider: loading/caching data in Source. (1340016)

Bug Fixes

  • doc: update deprecated 'projection' parameter/property to 'crs'. (148ef0b)
  • examples: replace deprecated parsedData by features. (92d9ca0)
  • examples: update deprecated 'projection' parameter/property to 'crs'. (d204f65)
  • label: breaks word correctly (58f9a04)
  • label: correctly hide dom (6bd7be7)
  • label: correctly remove labels when LabelLayer is deleted (60cfa44)
  • label: delete event to remove LabelLayer. (cca6dfe)
  • label: horizon culling (3d2e704)
  • label: reduce flickering by ordering label (2ed0fa2)
  • test: add default value to tile segment. (5a101f2)
  • test: replace deprecated parsedData by features. (096e678)
  • test: replace deprecated waitFor method. (70e52ed)
  • test: update deprecated 'projection' parameter/property to 'crs'. (3d35877)
  • test: update test to dataSourceProvider refactoring. (017d0b2)
  • test: update test to dataSourceProvider refactoring. (e78249a)

Chores

  • label: remove unnecessary registerLayer (d7f5c06)
  • rename parsedData by features. (4cd963d)
  • update packages. (7b4a245)
  • update THREE package. (7410e7b)

Tests

  • label: add test for Label2DRenderer (854022d)