You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added client-side caching mechanism for tiles and fonts
Bug Fixes
Language switching now only occurs on layers fueled by a MapTiler Cloud source
Others
Removed Map.loadImageAsync() as MapLibre's .loadImage() is now promise based.
Added all the exports that are now exposed from MapLibre
Adapted some newly exported classes to make them TypeScript-compatible with the Map classes from both MapLibre and MapTiler SDK
1.2.1
New Features
Elevation lookup at maptilersdk.elevation with the function .at(), .batch() and for geojson payloads. From the update of the MapTiler Client library
the new ready event. Called only once after load and wait for all the controls managed by the Map constructor to be dealt with (as one relies on async logic)
the new Map lifecycle method .onReadyAsync() corresponding to a promise-based equivalent of the the ready event.
Bug Fixes
The index now exposes the geocoding option types from the Client library
Others
Update of the Maptiler Client library to v1.8.0 that brings the elevation and math module
Update with the last version of MapLibre GL JS (v3.6.2)
Update of TypeScript configuration moduleResolution to Bundler (#62)
1.1.2
Bug Fixes
Now using a fixed version of MapLibre GL. No longer use ^ because this caused issues as MapLibre made minor/patch update that were not backward compatible
Added a new language flag Language.STYLE_LOCK to force keep the language form the style and prevent any further update. Can be at a sigle map instance level (via constuctor option language) or via global config (config.primaryLanguage)
Bug Fixes
The fallback language was {name:latin}, it is now replaced by {name}, which is for the local name (present by default for many places while latin is less frequent).
1.0.11
Bug Fixes
Now exporting MaptilerNavigationControl
Others
Documentation update for Map's option.maptilerLogo that was a bit unclear
1.0.10
New Features
Terrain growing animation on enabling/disabling
Added Map custom event loadWithTerrain
Added Map lifecycle methods .onLoadAsync() and .onLoadWithTerrainAsync()
Others
Readme section was added about the event an methods above
If the geolocate option is missing from Map constructor, then it's considered false
The instance types for the following MapLibre classes are now fully exported:
NavigationControl
GeolocateControl
AttributionControl
LogoControl
ScaleControl
FullscreenControl
TerrainControl
Popup
Marker
Style
LngLat
LngLatBounds
MercatorCoordinate
Evented
AJAXError
CanvasSource
GeoJSONSource
ImageSource
RasterDEMTileSource
RasterTileSource
VectorTileSource
VideoSource
MapMLGL
The following class have been extended to provide greater compatibility with SDK,s MapL
Popup
Marker
Style
CanvasSource
GeoJSONSource
ImageSource
RasterDEMTileSource
RasterTileSource
VectorTileSource
VideoSource
NavigationControl
GeolocateControl
AttributionControl
LogoControl
ScaleControl
FullscreenControl
TerrainControl
1.0.8
Bug Fixes
Since v1.0.7, the Map primary language (when custom) was no longer persistant on style update.
1.0.7
New Features
The apiKey can now be specified in the Map constructor (will propagate to config)
The language can now be speficifed in the Map constructo (will not propagete to config and will apply only to this specific instance)
Map now has the method .getSdkConfig() to retrieve the config object.
Map now has the method .getMaptilerSessionId() to retrieve the MapTiler session ID
Both .getSdkConfig() and .getMaptilerSessionId() are handy for layers or control built outside of the SDK that still need some of the configuration to interact with the server. Those components do not always have access to the internal of the SDK (especially that the config is scoped) but can access to the Map instance to which they are added with the implementation of the .onAdd() method.
1.0.6
New Features
Now exposing MaptilerGeolocateControl for external initialization if needed
Now exposing MaptilerTerrain for external initialization if needed
1.0.5
New Features
Terrain elevation is now using MapTiler's terrain-rgb-v2
1.0.4
Others
Improved the geolocate control behavior by not zooming out
1.0.3
Bug Fixes
Fixed the usage of relative path style JSON (in Map constructor and .setStyle())
1.0.2
Bug Fixes
Fixed the dependency scheme of MapLibre import.
1.0.1
Others
Reducing the NPM size by ignoring documentation images