Release notes

0.1.5 / 30.05.2023

  • Icons fixes.

0.1.4 / 28.05.2023

  • Added a new property that can be massed during the map intialisation called togglePoisVisibilityControl. If true, this will enable a new control for switching between pois visibility. POIs can be visualised on the map starting with zoom 14 and it's only available in combination with UNL vectorial tiles: rich, default or base.
var map = new UnlSdk.Map({
     ...
     apiKey: "YOUR-OWN-API-KEY",
     vpmId: "YOUR-OWN-VPM-ID",
     togglePoisVisibilityControl: true,
      ...
});

0.1.3 / 23.05.2023

  • Added a new map style option: 'rich';
  • Allow passing a 'tiles' parameter during sdk initialization. In combination with the tilesSelectorControl it allows passing the options available for the map style. If the tiles parameter is not sent, by default, all the map style options will be present: 'rich', 'default', 'satellite', 'terrain', 'traffic', 'base'; Eg.
var map = new UnlSdk.Map({
     ...
     apiKey: "YOUR-OWN-API-KEY",
     vpmId: "YOUR-OWN-VPM-ID",
     tilesSelectorControl: true,
     // tiles selector is enabled and 3 style options are present: rich, default vectorial and satellite.
     tiles: ["rich", "default", "satellite"]
      ...
});
  • Override the 'tiles' by the 'style' option. This is allowing developers to pass their own style during the map initialization and so any tiles array or tilesSelectionControl flag will be ignored:
var map = new UnlSdk.Map({
     ...
     apiKey: "YOUR-OWN-API-KEY",
     vpmId: "YOUR-OWN-VPM-ID",
     style: 'YOUR-OWN-MAP-STYLE"
      ...
});

0.1.2 / 09.05.2023

  • Minor fixes.

0.1.1 / 03.05.2023

  • Minor fixes.

0.1.0 / 03.05.2023

  • Added a parameter named 'env' for switching between the 'sandbox' and 'prod' apis. The api key and vpm id provided should be generated on the same env. By default, the library is pointing to the prod environment. Eg.
var map = new UnlSdk.Map({
     ...
     // generated on the sandbox env of the UNL platform
     apiKey: "YOUR-OWN-API-KEY",
     // generated on the sandbox env of the UNL platform
     vpmId: "YOUR-OWN-VPM-ID",
     env: UnlSdk.Environment.SANDBOX,
      ...
});

0.0.6 / 20.04.2023

  • Fixed UNL tiles URLs.

0.0.5 / 20.04.2023

  • Fixed the polyfill issue experienced with webpack.

0.0.3 / 14.10.2022

  • Minor bug fixes.

0.0.2 / 12.10.2022

  • Added the custom attribution control representing the tiles copyright on the map;
  • General bug fixes.

0.0.1 / 14.07.2022

  • Initial npm release.