Releases: osm-americana/diplomat
Releases · osm-americana/diplomat
v0.2.1
v0.2.0
⚠️ Breaking: Replacedmaplibregl.Map.prototype.localizeLayers()withmaplibregl.Map.prototype.localizeStyle(). This method automatically manipulates all the layers and upgrades any unlocalizable layers to be localizable based on sensible defaults. The rawmaplibre.Diplomat.localizeLayers()function and the constants such asmaplibre.Diplomat.localizedNameWithLocalGlossremain available for more fine-grained control. (#9)⚠️ Breaking: Removed the undocumentedcountryNamesByCodeglobal variable in favor ofmaplibregl.Diplomat.getGlobalStateForLocalization()for setting up country name localization andmaplibregl.Diplomat.getLocalizedCountryNameExpression()for getting an expression for getting a country name. (#9)
v0.1.0
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.