Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Release 0.19.0

Compare
Choose a tag to compare
@atomicsulfate atomicsulfate released this 19 Aug 10:43
· 414 commits to master since this release
73cc2c0

New features

General

  • 23d42b8 HARP-11266: Enable generic road shields

Styling engine

Examples

Changes in dependencies

API changes

Newly added API

  • 0500f51 HARP-8067: New module @here/harp-vectortile-datasource that supersedes @here/harp-omv-datasource and @here/harp-geojson-datasource.

    Data sources must be created using VectorTileDataSource instead of
    OmvDataSource and GeoJsonDataSource. For example:

    import { VectorTileDataSource } from "@here/harp-vectortile-datasource";
    
    map.addDataSource(new VectorTileDataSource({
      baseUrl: "https://vector.hereapi.com/v2/vectortiles/base/mc",
      authenticationCode: apikey
    }));
  • 8a9b02b HARP-11250: Existing style rules in harp.gl themes can be modified using the special
    attribute "extends". The value of "extends" is the "id" of the style rule to extend.

    The following snippet shows how the theme my-theme.json
    can replace the color of the extruded building.

    {
      // base.json
      "styles": {
        "tilezen": [
          {
            "id": "extrudedBuildings",
            "technique": "extruded-polygon",
            "when": ["ref", "extrudedBuildingsCondition"],
            "color": "red"
          }
        ]
      }
    }
    {
      // my-theme.json
      "extends": ["base.json"],
      "styles": {
        "tilezen": [
          {
            "extends": "extrudedBuildings",
            "technique": "extruded-polygon",
            "color": "yellow"
          }
        ]
      }
    }

Breaking API changes

  • a733df6 HARP-11250: Removed support for inline definitions in harp.gl themes.

    For example, definitions like the following

    // theme.json
    {
      "definitions": {
        "color": "rgb(255,0,0)"
      }
    }

    must be replaced with

    {
      "definitions": {
        "color": { "value": "rgb(255,0,0)" }
      }
    }
  • a733df6 HARP-11250: Removed experimental style snippet definitions in harp.gl themes.

    In this release the experimental support for declaring
    style snippets and reference them in style sets has been
    removed.

    For example, the following snippet theme cannot be loaded
    by harp.gl anymore.

    // theme.json
    {
      "definitions": {
        "waterPolygons": {
          "when": ["==", ["geometry-type"], "Polygon"],
          "technique": "fill"
        },
      },
      "styles": {
        "tilezen": [
          { ... }
          ["ref", "extrudedBuildings"],
          { ... }
        ]
      }
    }

Fixes

There are also lot of bugfixes. Check the full changelog.

Full changelog

@here/generator-harp.gl v0.18.0..v0.19.0

@here/harp-datasource-protocol v0.18.0..v0.19.0

  • 94350ca Refactored the technique descriptors.
  • 43c428b HARP-8067: Rename OmvTilerService to GeoJsonTilerService.
  • 240cdd9 HARP-11250: Optional when conditions.
  • cc90020 HARP-1125: Update the docs of the technique parameters
  • 6e36e2a HARP-11250: Remove deprecate properties.
  • a733df6 HARP-11250: Remove deprecate style extension support.
  • ced2d22 HARP-11431: Update three.js to 0.119.0 (#1732)

@here/harp-debug-datasource v0.18.0..v0.19.0

@here/harp-examples v0.18.0..v0.19.0

  • 38ba92a MINOR: yarn upgrade (#1765)
  • c610279 HARP-11509: Remove usages of @here/harp-omv-datasource from the examples
  • b2f7714 MINOR: Add instructions to bounds-generation example (#1752)
  • 617283a (HARP-11092) Adds Bounds Generation (#1743)
  • 064624d HARP-11466: Fix animation example.
  • d95880e HARP-11228: Properly dispose MapView
  • 8a9b02b HARP-11250: Add support to extend and override style rules.
  • a733df6 HARP-11250: Remove deprecate style extension support.
  • ced2d22 HARP-11431: Update three.js to 0.119.0 (#1732)
  • d4109fe Mark the objects created for the selection with transient.

@here/harp-features-datasource v0.18.0..v0.19.0

  • ee1f3e3 HARP-8067: Rename OmvDataSource to VectorTileDataSource
  • ced2d22 HARP-11431: Update three.js to 0.119.0 (#1732)

@here/harp-geojson-datasource v0.18.0..v0.19.0

  • 43c428b HARP-8067: Rename OmvTilerService to GeoJsonTilerService.
  • ee1f3e3 HARP-8067: Rename OmvDataSource to VectorTileDataSource
  • 0500f51 HARP-8067: Rename @here/harp-omv-datasource to @here/harp-vectortile-datasource
  • ced2d22 HARP-11431: Update three.js to 0.119.0 (#1732)

@here/harp-geometry v0.18.0..v0.19.0

@here/harp-geoutils v0.18.0..v0.19.0

@here/harp-lines v0.18.0..v0.19.0

@here/harp-map-controls v0.18.0..v0.19.0

  • 478db1b MINOR: Fixes to CameraKeyTrackAnimation (#1758)
  • d95880e HARP-11228: Properly dispose MapView
  • 05cb28d MINOR: Fix race condition with CameraKeyTrackAnimation (#1733)
  • ced2d22 HARP-11431: Update three.js to 0.119.0 (#1732)
  • bbdecbd HARP-11261: Fix zoomOnTargetPosition

@here/harp-map-theme v0.18.0..v0.19.0

  • 23d42b8 HARP-11266: Enable generic road shields
  • 8a9b02b HARP-11250: Add support to extend and override style rules.
  • a733df6 HARP-11250: Remove deprecate style extension support.

@here/harp-mapview-decoder v0.18.0..v0.19.0

  • 43c428b HARP-8067: Rename OmvTilerService to GeoJsonTilerService.
  • d95880e HARP-11228: Properly dispose MapView
  • ee1f3e3 HARP-8067: Rename OmvDataSource to VectorTileDataSource

@here/harp-mapview v0.18.0..v0.19.0

  • 94350ca Refactored the technique descriptors.
  • 23d42b8 HARP-11266: Enable generic road shields
  • d4275c6 HARP-10889: Fix extrusion animation in polygons example.
  • 47d91de HARP-11152: Fix extruded polygon outlines when style has no minZoomLe… (#1768)
  • 666a165 Fix eslint issues.
  • 9ea8668 MINOR: tileWrappingEnabled fixes (#1767)
  • 99a36e4 HARP-11228: Call WebGlRenderer.forceLooseCont ext() upon MapView.dispose
  • b967f3c MAPSJS-2709 Can toggle tile wrapping enabled (#1759)
  • 3b2ea45 MINOR: Add fallback option for screen to geo conversion (#1753)
  • c1f2b45 MINOR: Adds projection setter to BoundsGenerator (#1755)
  • 617283a (HARP-11092) Adds Bounds Generation (#1743)
  • d95880e HARP-11228: Properly dispose MapView
  • 8a9b02b HARP-11250: Add support to extend and override style rules.
  • a733df6 HARP-11250: Remove deprecate style extension support.
  • ced2d22 HARP-11431: Update three.js to 0.119.0 (#1732)
  • bbdecbd HARP-11261: Fix zoomOnTargetPosition

@here/harp-materials v0.18.0..v0.19.0

  • 6d2ab44 HARP-11430: Fix Atmosphere flickering.
  • 1e4316d HARP-10238: Address review comments.
  • 65ffa93 HARP-10238: Preparation to support WebGL2.
  • ced2d22 HARP-11431: Update three.js to 0.119.0 (#1732)

@here/harp-olp-utils v0.18.0..v0.19.0

  • d95880e HARP-11228: Properly dispose MapView

@here/harp-omv-datasource v0.18.0..v0.19.0

  • 43c428b HARP-8067: Rename OmvTilerService to GeoJsonTilerService.
  • 26b5ce2 HARP-8067: Renamed OmvTileDecoder to VectorTileDecoder.
  • ee1f3e3 HARP-8067: Rename OmvDataSource to VectorTileDataSource
  • 0500f51 HARP-8067: Rename @here/harp-omv-datasource to @here/harp-vectortile-datasource
  • 910282c HARP-11151: Force ring winding to follow Mapbox Vector Tile spec.
  • 6e36e2a HARP-11250: Remove deprecate properties.
  • ced2d22 HARP-11431: Update three.js to 0.119.0 (#1732)

@here/harp-test-utils v0.18.0..v0.19.0

  • 99a36e4 HARP-11228: Call WebGlRenderer.forceLooseCont ext() upon MapView.dispose
  • ee1f3e3 HARP-8067: Rename OmvDataSource to VectorTileDataSource
  • ced2d22 HARP-11431: Update three.js to 0.119.0 (#1732)

@here/harp-text-canvas v0.18.0..v0.19.0

  • 1e4316d HARP-10238: Address review comments.
  • 65ffa93 HARP-10238: Preparation to support WebGL2.
  • ced2d22 HARP-11431: Update three.js to 0.119.0 (#1732)

@here/harp-utils v0.18.0..v0.19.0

  • 666a165 Fix eslint issues.
  • 1e4316d HARP-10238: Address review comments.

@here/harp-vectortile-datasource v0.18.0..v0.19.0

  • 23d42b8 HARP-11266: Enable generic road shields
  • 43c428b HARP-8067: Rename OmvTilerService to GeoJsonTilerService.
  • 26b5ce2 HARP-8067: Renamed OmvTileDecoder to VectorTileDecoder.
  • a990299 HARP-8067: Rename OmvDecodedTileEmitter to VectorTileDataEmitter.
  • c2e62d0 HARP-8067: Move the data adapters to sub directories.
  • d95880e HARP-11228: Properly dispose MapView
  • ee1f3e3 HARP-8067: Rename OmvDataSource to VectorTileDataSource
  • 0500f51 HARP-8067: Rename @here/harp-omv-datasource to @here/harp-vectortile-datasource

@here/harp-webpack-utils v0.18.0..v0.19.0

@here/harp-webtile-datasource v0.18.0..v0.19.0

@here/harp.gl v0.18.0..v0.19.0

  • 43c428b HARP-8067: Rename OmvTilerService to GeoJsonTilerService.
  • 26b5ce2 HARP-8067: Renamed OmvTileDecoder to VectorTileDecoder.
  • ee1f3e3 HARP-8067: Rename OmvDataSource to VectorTileDataSource
  • ced2d22 HARP-11431: Update three.js to 0.119.0 (#1732)