Skip to content

v0.2.0

Choose a tag to compare

@1ec5 1ec5 released this 29 Nov 01:47
· 6 commits to main since this release

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)