Skip to content

Releases: iTowns/itowns

Release 2.27.0

09 Nov 15:01

Choose a tag to compare

BREAKING CHANGES

  • source: the signature function of LASParser.parse and PotreeBinParser.parse has changed.

Features

  • add Entwine Point Tile support (697fefb)
  • controls: add dispose method in FirstPersonControls and StreetControls (5b308be)
  • point: add an intensity range for point clouds (0ff51cc)
  • Point: add classification support. (090aa9d)
  • View: add View.dispose method. (b8544ae)

Code Refactoring

  • ColorLayer: move opacity/visibility ColorLayer handling to MaterialLayer. (63d7b43)
  • source: use in/out system in PointCloudNode#load (250b1ee)
  • core: remove Layer.parsingOptions. (8175642)

Bug Fixes

  • doc: update deprecated parsingOptions. (d90ab27)
  • example: broken split rendering div. (fd70c6c)
  • examples: update deprecated parsingOptions. (2e59505)
  • examples: update draco to work with THREE v121. (7e0428a)
  • source: move default format before calling parent constructor (f254032)
  • test: fix issue concerning node latest version for deployment (eb738d7)
  • test: switch latest node version from 15 to 14 (fe4fbff)
  • test: temporary disable the LabelLayer (2af0fd8)
  • test: update deprecated parsingOptions. (8642441)
  • View: undefined cache after removing layer with multi-view. (d4c9871)

Chores

  • docs: add horizontal scroll on the doc content to see the full methods signature (86eae4f)
  • export GlobeControls in itowns api (e8e33eb)
  • update packages. (76cf992)

Documentation

  • source: update WMTSSource class documentation (8d44ee2)
  • tutorial: update the beginning of the tutorial to display a geometry layer (e1447b7)
  • tutorial: update tutorial on how to create a simple globe (daa5267)
  • add webGL 2.0 docs, examples and a tutorial. (bc6ab91)
  • missing extends property in source documentation. (c59a892)

examples

  • add two Entwine Point Tile examples (581b64d)

Tests

  • update opacity/visibility handling. (babd1db)

Release 2.26.0

06 Oct 13:09

Choose a tag to compare

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)

Release 2.25.0

17 Sep 15:27

Choose a tag to compare

Features

  • parser: add LAS/LAZ files parser (f410de2)
  • label: add a new class to Labels (01fa199)

Bug Fixes

  • debug: fix debug gui tools. (c9a5395)
  • label: allow label to only have an icon (4728d2d)
  • label: labels don't jitter anymore (1931326)
  • label: makes LabelLayer able to run alone (8cf0ca6)
  • label: separate labels dom in layers (84a7ff2)
  • style: load patterns correctly (f5a1c95)
  • test: more robust animation testing. (6ac683b)

Chores

  • deps-dev: bump node-fetch from 2.6.0 to 2.6.1 (de26581)

Performance Improvements

  • label: don't loop into render() if there is no LabelLayer visible (23558d3)

Release 2.24.3

10 Sep 14:00

Choose a tag to compare

BREAKING CHANGES

  • The signature of the PotreeLayer constructor has changed.

Bug Fixes

  • example: wrong display minimum zoom parameter in immersive view. (4be4805)
  • label: delete LabelLayer if attached layer is also deleted (f3dc93e)
  • style: correctly read the sprites from VT (b181a5a)

Chores

  • deps: bump bl from 4.0.2 to 4.0.3 (e8e04e7)

refacto

  • add an abstract PointCloud system (7f7cab8)
  • controls: reuse picked position (c7a32f5)
  • material: mutualize common uniform/define methods (693d649)

Release 2.24.2

10 Sep 13:36

Choose a tag to compare

Bug Fixes

  • label: add compatibility with (7d363a0)
  • style: move label halo management from CSS example to Style.js (e33ec37)

Features

  • style: add a Style (CSS) Chunk system similar to ShaderChunk (877471a)

Release 2.24.1

10 Sep 13:34

Choose a tag to compare

Update Three version in build.

Release 2.24.0

30 Jul 14:43

Choose a tag to compare

Features

  • Label: text stroke width support. (07a616c)
  • layer: add max and min zoom properties, they define visibility interval. (18c2ec3)
  • LayerUpdateState: enhancement handling of no data source. (b0ebfca)

Code Refactoring

  • c3Engine: replace WebGLRenderer to WebGL1Renderer. (37aa8e1)
  • GeoJsonParser: change filteringExtent parsing option to Extent or boolean, instead of only Extent. (d73c52f)
  • Source: clean handling error. (b2399ee)

Bug Fixes

  • 3dtiles: update enableDracoLoader (cddf2b9)
  • DataSourceProvider: wrong cache keys for vector sources. (a44d003)
  • examples: remove redundant parameter (95a5d12)
  • potree: a typo disabled progressive display everytime (2431a85)
  • raster process: error checking level elevation raster. (c6b8bf9)
  • Webgl: tempory fix webgl error. (aca95ed)

Chores

  • deps: bump elliptic from 6.5.2 to 6.5.3 (ec2fd4a)
  • update packages. (3192f0d)
  • deps: bump lodash from 4.17.15 to 4.17.19 (3f24d44)

Performance Improvements

  • remove some instanceof that can be avoided (5119853)

examples

  • 3D Tiles Add example on 2.5D map (ba1a8c8)
  • layer: update examples with max and min zoom properties Layer. (febc656)
  • VectorTile: fix wrong max level source. (31e8e91)

Tests

  • layer: update examples with max and min zoom properties Layer. (d427aac)

Release 2.23.0

02 Jul 10:03

Choose a tag to compare

BREAKING CHANGES

  • 3d tiles:

    • C3DTilesLayer tileIndex renamed to tileset.

    • C3DTileset's index attribute renamed to tiles.

    • Tileset index attribute (stored in layer.tileIndex.index) is now an array starting at 0.

    • extensions are now registered in the registeredExtensions attribute of C3DTilesLayer.
      See 3dtiles_batch_table.html for an example.

    • C3DTExtensions expects for an object extending C3DTAbstractExtension to manage a registered extension instead of a parser.

    • Rename core 3D Tiles classes:

      • $3DTilesExtensions becomes C3DTExtensions
      • $3dTilesAbstractExtension becomes C3DTAbstractExtension
      • BatchTableHierarchyExtension becomes C3DTBatchTableHierarchyExtension
    • New classes maching the 3D Tiles specification:

      • C3DTBatchTable
      • C3DTBoundingVolume
      • C3DTileset
    • Add attributes to 3D Tiles core classes indicating their type

  • style: Style#text.halo is not available anymore, and each property of it as been place in the text object, with the halo prefix:

    • haloWidth
    • haloColor
    • haloBlur

Features

  • Cache: add get/set methods by key array. (9665a43)
  • style:
    • allow URL of a fill.pattern to be used (fae1b34)
    • add Style inheritance (d76a573), closes #1318

Code Refactoring

  • 3d tiles:

    • move attribute from layer to tileset to match spec. (25f59aa)
    • remove BatchTableParser (c027894)
    • rename tileIndex property of C3DTilesLayer to tileset. (8f0baaf)
    • Add spec classes and modify extensions management. (8009f7a)
  • oriented image: remove unnecessary key to cache. (3c5f80c)

  • parser: re-write Matrix4#setMatrix3(). (532a687), closes Matrix4#setMatrix3

  • Provider: remove unnecessary fetchedData source case. (26ea402)

  • Vector Tiles: set style in vector tiles parser. (cd0756f)

Bug Fixes

  • core: forgotten fetch options. (ac8b1e3)
  • examples: GUI errors in examples. (32d856f)
  • gui: prevent other events when the GUI is used. (3dd1b18)
  • label:
    • register the labellayer if added alone (f13c78c)
    • get correct extent destination for a LabelLayer (a304a8d)
    • hide labels when hiding LabelLayers (#1408) (1ca4041)
  • oriented image: wrong feature property calling. (09a39c9)
  • parser: MultiPoint from geojson files were not read correctly (191c97d), closes /tools.ietf.org/html/rfc7946#section-3
  • renderer: set the correct size for labels dom element (9457593)
  • test: wrong adding potree layers. (55e82fc)

Chores

  • 3dtiles: check that extensions found in a tileset have been correctly registered to layer (a436aa9)
  • examples: add tileMatrixSetLimits in a example layer. (338dda0)
  • parser: change @mapbox/togeojson to @tmcw/togeojson (75fb66b)
  • update tests and examples to support the new Style inheritance (4cd9d5d)
  • test: replace bootstrap by mocha hook in functional tests. (395424d)
  • update packages. (de5fd1f)
  • deps: bump websocket-extensions from 0.1.3 to 0.1.4 (cfcc09d)

Documentation

  • 3D Tiles documentation updated.

example

  • add a vector tile example with style drag and drop (eeb6e16)
  • add labels in Shapefile example (c89d284)
  • add labels in VRT example (98dc439)
  • add labels in WFS example (58ee3ba)
  • enable labels in kml example (8d243c2)

Tests

  • Cache: add unit test on setByArray/getByArray (259b38d)
  • Layer: add OrientedImageLayer unit test. (4ff5126)

Releases 2.22.0

04 Jun 08:29

Choose a tag to compare

BREAKING CHANGES
  • style: Style#getTextAnchorPositionInCSS has been renamed to
    Style#getTextAnchorPosition.
  • Feature: Feature#geometry is no longer available, use Feature#geometries instead.
New Features
  • label: add a first implementation of Labels (1d05289d)
  • renderer: add a renderer for Labels (b8cded01)
Refactors
  • core: add Cache Class and instance one cache by Layer. (94a63d7b)
  • style: get anchor position values instead of CSS (#1396) (8c456d73)
Bug Fixes
  • Cache: wrong key handling when the keys count is inferior at 3. (8bafa130)
  • style: add onload handler for symbol icon (0bf3a692)
  • source: set the Style.minzoom correctly in VectorTilesSource (#1395) (f8d9de78)
  • planar: use correct mouse position in PlanarControls (347653ce)
  • sort features by order in VectorTileParser (d0392c2c)
Examples
  • core: rename Feature#geometry to geometries (be61d15e)
  • enable labels in Vector Tiles examples (a9bc6f3e)
  • change the raster GPX example to support labels (b6448b8b)
Chores
  • rename some features variables to collection to avoid confusion (0d400730)
  • fix lint in eslintrc.js (32de0889)
  • update packages. (8529e995)
Tests
  • unit: add onload property to DOMElement (47241b25)

Release 2.21.0

06 May 09:50

Choose a tag to compare

2.21.0 (2020-05-06)

BREAKING CHANGES

  • style: Style#setFromVectorTile no longer has a zoom
    parameter. The zoom value is equal to Style#minzoom.
  • FileSource: Source must be in Layer constructor options.
    You couldn't add a source after a Layer instancing.
  • View: the signature of View#pickFeaturesAt has changed.

New Features

  • style: add partial support for steps in vector tiles (36cdfd4e)
  • layer: add getCurrentMaxZoom property to InfoLayer (b35d4147)

Refactors

  • style:
    • add minzoom/maxzoom support (0f677256)
    • make the text outline lighter, and limit it to 1px wide (ba68784b)
  • core: remove BuilderEllipsoidTile#OBB (37c2908a)
  • view: allow GeometryLayer in View#pickFeaturesAt (0c9bf0dc)
  • parser: remove unnecessary extent to parse vector tile file. (2328e4c2)
  • test: use mocha --file to unit tests instead of use first file list. (90c6eafd)
  • FileSource: pre-Parse file in constructor Layer. (8a1193db)
  • Feature: build feature extent with the correct crs. (90cf38cc)
  • Layer:
    • move Layer.sequence initialization to View. (53fa9a35)
    • Robust layer#whenReady mechanisms. (ab8d3d08)
  • OrientedImage: move fetching to OrientedImageSource. (cc66768a)
  • source: add C3DtilesSource. (c2e34856)
  • convert: handling NaN to minAltitude computing. (3f7cb7ee)

Bug Fixes

  • test:
    • add events managing back in bootstrap (30b3354a)
    • adapt FileSource and avoid overload Fetcher. (d6d32427)
    • add global document before parsing src. (09a200fe)
    • dispose context crash if old canvas is keeped. (df519e1c)
  • examples:
    • wrong altitude points bus line. (9419f975)
    • change tile matrix limit to Ortho Layer. (764d47a5)
  • demutils: interpolate values considering noDataValue (3ddaedfb)
  • Core: unnecessary testing. (f5947278)
  • ElevationLayer: avoid to replace value if noDataValue is undefined. (c359c817)
  • DataSourceProvider: wrong withAltitude and withNormal parsing options. (1de4391d)
  • VectorTileParser:
    • wrong layers filtering by zoom. (0f20ce3f)
    • wrong calling filter expression. (c1b80659)

Chores

  • test:
    • move mock file to bootstrap file. (7c702675)
    • add batch table test unit. (e02dc259)
    • add feature2Mesh test unit. (f02b7351)
    • add view test unit. (4c3c2e29)
    • add ellipsoid test unit. (74f2a60a)
    • clean and add GlobeControls unit tests. (f643db7b)
    • add Style unit test and move global declaration to mock file. (b36027ef)
    • add DEMUtils unit test. (025e56c3)
    • rewrote vector tiles testing (4509fa72)
  • add deepscan badge. (1e0f35bd)
  • update packages. (203f5ad2)

Docs

  • Layer: add View#whenReady, View#ready and View#source documentation. (d7bb925e)