Skip to content

Releases: iTowns/itowns

Release 2.34.0

30 Jul 09:03

Choose a tag to compare

2.34.0 (2021-07-30)

Features

  • GlobeControls: add support for travel out animation (9db6ecb)
  • Label: add support to pass custom domElements to labels (example) (b560005)
  • Layer: add FeatureGeometryLayer. (0961787)
  • StateControl: add a method to modify class properties (1e2e11e)
  • Style: add support for custom icon in labels (7f355c4)
  • Style: add support for custom label anchor (fe2a2d9)
  • TMSSource: add support for specific TileMatrix identifier (e394255)
  • View: add double right-click event (9ce7213)

Bug Fixes

  • 3Dtiles: remove debugger command. (0a06614)
  • eventToViewCoord: check if event.offset properties are defined (26f459a)
  • example: generate correct URL when sharing EPT example (8ef0b34)
  • FeatureToolTip: fix tooltip legend icon (f632308)
  • Label: fix occlusion between icons and label text (29b6435)
  • Label: fix Style.text.offset parameter (26b970b)
  • Label: rounds the projected coordinates of labels (5d0ca6f)
  • LayeredMaterialNodeProcessing: checks for source cache with the layer crs for command cancellation (7570cad)
  • tutorial: fix internal link in tutorials (ce8029c)

Examples

  • add an example where user can define custom controls (example) (00e62c2)
  • GeoJSON raster: center the camera initial position on the displayed features (8d8ac2c)
  • geojson-file: refactor example to illustrate two ways of displaying data from a file (4bc0774)
  • vectorTile: replace expired source in vector tile examples (8ccc1a3)

Code Refactoring

  • GlobeControls: switch travel animation to StateControl (d99827d)
  • View: eventToViewCoords returns middle view coords by default (2e501c3)

Workflow and chores

  • expose 3dtiles process methods. (7a94570)
  • update packages. (50cd744)
  • update html titles in some examples (7ea6538)

Documentation

  • FeatureGeometryLayer: add jsdoc to documentation config (e77f102)
  • README: update deprecated link (b483e0d)
  • README: update integration badge to github action (4c77adf)
  • Style: add precision on doc (bcee39f)
  • tutorials: add support to sort tutorials in sections (e9c8510)
  • Fundamentals: add links to documentation (cf30e37)
  • Fundamentals: change section titles (296206f)
  • Fundamentals: change tutorial links appearance (ac167ec)
  • add tutorials on how to use iTowns (5916ac9)

Release 2.33.0

28 May 11:58

Choose a tag to compare

2.33.0 (2021-05-28)

BREAKING CHANGES

  • Style/Convert: GeometryLayer.convert options are moved in Style properties.

    • color Convert option is replaced by:
      • Style.fill.color is replaced by:
      • Style.stroke.color
      • Style.point.color
    • altitude Convert option is replaced by:
      • Style.fill.base_altitude
      • Style.stroke.base_altitude
      • Style.point.base_altitude
    • extrude Convert option is replaced by:
      • Style.fill.extrusion_height
    • examples
    • documentation
  • overrideAltitudeInToZero layer options is removed use Style.xxx.base_altitude instead.

  • CameraUtils: The headings used in CameraUtils are now counted clockwise (they were
    previously counted counter-clockwise).

  • Feature: FeatureCollection and Feature signature constructor are changed.

Features

  • Use function to defines Style properties see example WFS to raster
  • ColorLayer: add custom shader to ColorLayer. (2d32888)
  • ColorLayer: add option to filtering textures Layer. (da245f9)
  • Coordinates: add applyMatrix4 method. (061eda0)

Bug Fixes

  • CameraUtils: count heading in clockwise direction (880c67d)
  • CameraUtils: fix rotation animation when start heading is 0 (1ca0c17)
  • CameraUtils: the camera rotation animation take the shortest angle (ae194d3)
  • Controls: replace deprecated THREE.Quaternion.slerp. (2e27408)
  • debug: update coordinates event on mouse move (9b62770)
  • Feature: wrong condition to choose extent crs projection. (73198c7)
  • FeatureToolTip: avoid undefined layer on move. (6ae7305)
  • FileSource: transform extent source if is needed. (0177503)
  • GeojsonParser: store geojson properties within a separate property (121b796)
  • LabelLayer: init LabelLayer visibility with attached ColorLayer. (67f25a1)
  • LayeredMaterialNodeProcessing: prevent errors in layer update when removing layer (d9fda75)
  • PlanarControls: prevent freezing zoom when clicking while zooming with an orthographic camera (b0f0a2d)
  • test: use Extent.applyMatrix4 and Coordinates.applyMatrix4. (bdf50ab)

Examples

  • add custom shader effect example. (15163d9)
  • change buildings id for coloring (3f7ccd0)

Code Refactoring

  • ColorLayer: add effect type ColorLayer parameter. (19d58c6)
  • ColorLayer: remove useless features in ColorLayer command. (66ee340)
  • example: remove unuseless variable. (041b62a)
  • Feature: compute and apply local transform matrix in Feature. (e244f55)
  • Feature: declare constant in file begining. (f44c29e)
  • Feature: FeatureCollection extends by Object3D and use local transform matrix. (8d20315)
  • Feature: normalize crs projection. (f9df7ff)
  • Feature: remove optionsFeature from FeatureCollection. (b15c642)
  • Feature: replace parsing option withNormal and withAltitude by structure. (420ba1a)
  • Feature: simplify build extent check. (0091a5a)
  • Layer: deprecate labelEnable option Layer and replace by addLabelLayer. (082d22c)
  • ShaderChunk: introduce shader chunk manager class to instance ShaderChunk. (e93ed76)
  • Source: avoid to cache raster data in Source. (521ca74)
  • Style/Convert: move options from Converter to Style. (23de259)
  • VectorTileParser: remove unnecessary parameters. (860d748)

Workflow and chores

  • chart.js: update chart.js to 3.0. (6953e01)
  • update packages. (0f54e2e)

Documentation

  • FeatureCollection: clarify FeatureCollection.extent projection. (f612eb3)
  • View: add diffuse parameter documentation. (fcc16da)

Tests

  • unit: update unit tests with feature refactoring. (cbe3e68)

Release 2.32.0

09 Apr 10:07

Choose a tag to compare

2.32.0 (2021-04-09)

Features

  • PlanarControls: add max and min resolution parameters to limit zoom (ad17590)
  • PlanarControls: Add property 'Cursor' and method 'setCursor' for cursor modification (0870ede)
  • Style: support mapbox expression. (0581d3d)

Bug Fixes

  • Atmosphere: avoid several realistic atmosphere initializations. (b949f75)
  • Camera: resize preserves the scale (e44de7f)
  • extent: forget copy zoom in Extent#transformedCopy. (1a607ea)
  • Extent: forgetting zoom property copy, in Extent.as(). (3efea0e)
  • Label: wrong div translate. (5ef7197)
  • PlanarControls: fix drag when moving out of view domElement (a4f0a3f)
  • PlanarControls: prevent triggering new movement when already moving (66256bb)
  • test: apply async icon label loading. (76d732a)
  • test: update label test with default icon size. (72a98d4)
  • test: update vector tile style test with context expression. (c9fc662)
  • VectorTileSource: failing to open mapbox url format. (b6dd383)

Examples

  • Orthographic: add resolution limit parameters in orthographic examples (aafd37b)
  • add atmosphere mars example. (27e28ad)
  • update irrelevant titles in some examples (2914286)

Code Refactoring

  • Atmosphere: move realistic atmosphere options to Atmosphere constructor. (234a8ee)
  • Source: remove extentsInsideLimit. (035701b)
  • VectorTilesSource: remove useless styles by zoom. (baabbae)

Workflow and chores

Documentation

  • GeometryLayer: fix example and typo regarding Object3D (d77c8d6)
  • TMSSource: add example in doc (dce0032)

Release 2.31.0

02 Mar 10:58

Choose a tag to compare

2.31.0 (2021-03-02)

Bug Fixes

  • GlobeLayer: doesn't subdivise the pole tile mesh. (53a9f6f)
  • PlanarControls: fix pan movement (5be30b7)
  • PlanarControls: standardize zoom factors for perspective and orthographic camera (c65bbab)
  • Points: remove THREE.Geometry. (6ff3b3d)
  • RasterColorTile: wrong getter name. (1f7eb05)

Examples

  • correct zoom factor parameter in examples (a86e3f8)

Code Refactoring

  • Debug: simplified point debug code. (c99fb09)
  • GlobeControls: refactor zoom speed management (57f6666)
  • Immersive: replace Matrix4.makeBasisFromMatrix by Matrix4.setFromMatrix3. (d442602)
  • MaterialLayer: MaterialLayer to RasterNode. (46b19f1)
  • PlanarControls: refactor zoom speed management (ca47389)
  • points: avoid clone point material. (174a60f)
  • RasterTile: rename file. (c73fc38)
  • View: remove useless getParentLayer method (6f0b545)
  • View: simplify getLayerById method. (58874ec)

Workflow and chores

  • update package-lock.json. (b3e81fc)
  • deps-dev: bump marked from 1.2.9 to 2.0.0 (46bc3f9)
  • update packages. (09f12c9)

Tests

  • MaterialLayer: update tests with the MaterialLayer refactoring. (0fa3c06)

Release 2.30.0

05 Feb 15:30

Choose a tag to compare

2.30.0 (2021-02-05)

Features

  • View/CameraUtils: add possibility to set camera placement from an extent (d6b2ab4)
  • VectorTilesSource: store parsed vector tile style as class property (bb581fb)

Bug Fixes

  • Camera: rename intersectSphere to intersectsSphere (f5e1004)
  • examples: rename smartZoom param in vector_tile_raster_2d (ca7aaeb)
  • examples: update three version in view_mutli_25d (7778a4d)
  • Terrain: use exact method to compute min and max elevation node; (6297c09)

Examples

  • OrthographicCamera: set camera initial position from an extent (6c10ba2)

Code Refactoring

  • Camera: refactor Camera as an ES6 class (596cee6)
  • Camera: remove matrixProjectionNeedsUpdate. (a501c92)
  • debug: remove three r124 warning. (9c2406f)
  • layer: introduce RasterLayer. (e7b2653)
  • Layer: Layer constructor parameter needs Source. (11b8645)

Workflow and chores

Release 2.29.2

26 Jan 17:57

Choose a tag to compare

2.29.2 (2021-01-26)

Bug Fixes

  • 3dTile: don't overload the b3dm material. (d7f14b6)
  • PlanarControls: fix zoom movement with an orthographic camera (999851a)

Code Refactoring

  • view: add vector target viewToNormalizedCoords. (b83a9c8)

Release 2.29.1

22 Jan 17:34

Choose a tag to compare

2.29.1 (2021-01-22)

Bug Fixes

  • PlanarControls: fix issues related to cameraOrtho feature (475c788)

Documentation

  • update some deprecated doc (d16c796)
  • Camera: modify camera.adjustAltitudeToAvoidCollisionWithLayer doc (aabe814)
  • GlobeControl: update class constructor doc (6fb3d28)
  • GlobeControls: minor correction (7230b53)
  • View: update doc of View.getMeterToPixel method (cc2385c)

Release 2.29.0

21 Jan 17:09

Choose a tag to compare

2.29.0 (2021-01-21)

Features

  • controls: add damping factor property. (22d962d)
  • controls: add option enable smart travel in planarControls (a31873d)
  • orthographic camera: add support for an orthographic camera (de0dba6)
  • points: apply opacity classification on others MODE. (e411425)
  • webgl: support pick position from depth buffer with ortho (05fb79f)

Bug Fixes

  • ColorLayer: wrong white to opacity effect. (9666822)
  • controls: moving camera after disabling collision. (2dd8e06)
  • controls: remove prevent default in mouseDown. (c866807)
  • examples: fix key events in examples (c187616)
  • PlanarControls: remove previously instantiated controls associated (2726101)
  • PlanarControls: reset focus policy default parameters (b56aaaf)
  • test: update a deprecated method call (497d55e)
  • workflow: wrong path to build docs link. (066f54a)

Examples

  • orthographic camera: add examples of PlanarView with an orthographic camera (d58c1b6)

Code Refactoring

  • Three: remove deprecated matrix method. (fffef40)
  • Three: remove deprecated quaternion method. (f435fef)

Workflow and chores

  • release v2.29.0 (8c69ef6)
  • add action github to release and npm publish. (eef3d53)
  • add bump script. (9e0f7b6)
  • add changelog script. (f7f6c40)
  • add github action to continuous integration (e8e4f01)
  • add script to unit tests coverage. (7c128ab)
  • prepare migrating to webpack 5. (9a549d4)
  • refactoring debug npm script. (b56f8b0)
  • example: rename start zoom to smart travel in key bindings description (24c7c2b)
  • remove deprecated babel-polyfill (2e3de03)
  • remove useless integration files. (349e1b4)
  • update actions/setup-node to v2. (e3e31c0)
  • upgrade and update lock file version to 2.0. (537345b)
  • deps: bump ini from 1.3.5 to 1.3.7 (fd46fd1)
  • update packages. (34ee221)

Documentation

  • workflow: bump and changelog scripts. (01bf159)

Others

  • Update LICENSE.md (28be05c)
  • Change comment on workflow remove old artifact (7fcbb3a)
  • Update actions checkout to v2 (9094edc)
  • Update remove-old-artifacts.yml (0a9911f)
  • Create remove-old-artifacts.yml (617326c)

Release 2.28.1

02 Dec 13:12

Choose a tag to compare

Bug Fixes

  • install: prepare script spends a lot of time, to check npm version. (a557cbf)

Release 2.28.0

02 Dec 13:03

Choose a tag to compare

BREACKING CHANGES

In release 2.28.0, if you instance PlanarView, the view instances also PlanarControls.
If you want instance a another controls, add noControls: true in your PlanarView options.
Otherwise you would have conflicts with both controls.
In your user case, remove old PlanarControls instance.

  • PlanarView: associate a PlanarControls instance to a new PlanarView by default (2c9a0e4)

feature

  • core: expose proj4 defs methods. (619077e)
  • scale 2D: trigger event when 2D map animation is over to detect when scale computation is relevant (bb5758a)

Code Refactoring

  • planar examples: refactor the implementation of PlanarView and PlanarControl in examples which use it to match the refactored PlanarView (with default PlanarControl instantiated) (8ad6a9f)
  • planarControls: refactor planar controls as an ES6 class (348c7e7)

Bug Fixes

  • PlanarControls: fix refactoring errors (6bc812d)
  • PlanarView: fix a refactoring error (63efafe)

Chores

  • npm update lock file. (9c1857d)
  • update packages. (3a422f1)
  • use current node version to test and deploy. (0a7e22b)

examples

  • scale: factorize the updateScaleWidget method as twoo methods declared in Scale.js (00285ff)
  • map 2D and 25D: add scale on 2D and 2.5D map examples (cd4af7e)