Skip to content

Releases: osm-americana/diplomat

v0.2.1

29 Nov 19:02

Choose a tag to compare

Changes since v0.2.0:

  • Updated the built index.js in the dist/ folder that unpkg was distributing to reflect the v0.2 code rather than v0.1.0.
  • Corrected the usage example for maplibregl.Diplomat.getGlobalStateForLocalization().

v0.2.0

29 Nov 01:47

Choose a tag to compare

Changes since v0.1.0:

  • ⚠️ Breaking: Replaced maplibregl.Map.prototype.localizeLayers() with maplibregl.Map.prototype.localizeStyle(). This method automatically manipulates all the layers and upgrades any unlocalizable layers to be localizable based on sensible defaults. The raw maplibre.Diplomat.localizeLayers() function and the constants such as maplibre.Diplomat.localizedNameWithLocalGloss remain available for more fine-grained control. (#9)
  • ⚠️ Breaking: Removed the undocumented countryNamesByCode global variable in favor of maplibregl.Diplomat.getGlobalStateForLocalization() for setting up country name localization and maplibregl.Diplomat.getLocalizedCountryNameExpression() for getting an expression for getting a country name. (#9)

v0.1.0

27 Nov 00:35

Choose a tag to compare

Initial release featuring:

  • Methods and placeholder constants for localizing symbol layers
  • Support for OpenMapTiles- and Tilezen-compatible tilesets
  • Automatic deduplication of names shared between preferred and local languages
  • Parsing of semicolon-delimited value lists
  • Utilities for discovering the user’s preferred language
  • Basic language fallbacks

See osm-americana/openstreetmap-americana#914 for background context.