- The class
AJAXError
is now imported as part of themaplibregl
namespace (CommonJS limitation from Maplibre GL JS) (#129) - The
Map
constructor can now also take a language as a string (#131)
- Shows a warning message in the map container if WebGL context is lost
- The event
"webglContextLost"
is now exposed - The
Map
class instances now have a.setTerrainAnimationDuration(d: number)
method - The
Map
class instances now have events related to terrain animation"terrainAnimationStart"
and"terrainAnimationStop"
- expose the function
getWebGLSupportError()
to detect WebGL compatibility - Adding detection of invalid style objects of URLs and falls back to a default style if necessary.
- Updating to Maplibre v4.7.1
- Updating from MapLibre v4.4.1 to v4.7.0. See Maplibre changelogs for v4.5.0, v4.5.1, v4.5.2, and v4.6.0
- Fixed the elevation shift glitch happening with terrain animation after calling
.easeTo()
(#110) - The heatmap layer helper missed the
beforeId
option
- Updating from MapLibre v4.4.1 to v4.7.0, adding the following features. See Maplibre changelogs for for v4.5.0, v4.5.1, v4.5.2, v4.6.0 and v4.7.0
- Updating from MapLibre v4.4.1 to v4.7.0
- Updating
MapTilerGeolocateControl
to match latest Maplibre update (#104) - Now sourcing language list from
@maptiler/client
(maptiler/maptiler-client-js#42)
- No longer using named imports from Maplibre (#99)
- Exporting types with classes for Maplibre types (#99)
- Bundling now made with ViteJS (no longer Rollup)
- The types from classes defined in Maplibre are now exposed more reliably (#98)
- Loading (lazy) the RTL plugin ealier and outside Map instance to prevent display glitch
- Displays a message in the map div when WebGL2 is not supported (#92)
- Fails quietly if caching API is not usable (non https, non localhost) (#93)
- Removed
Inflight
as a second degree dependency (#95) - Removed double export of class+type from Maplibre (#95)
- Fixing the loading of the RTL plugin (#96)
- Replaced Eslint and Prettier by BiomeJS (ang got rid of tons of dependencies, some were problematic) (#95)
- Fixed many formatting and linting issues pointed by BiomeJS (#95)
- Update from Maplibre v4.1.3 to v4.4.1 (see Maplibre's changelog)
- Floating buildings, fixed with the above update
- Fixed issue in attribution control
- Fix for the client-side caching breaking GeoJSON sources #82
- Improved attribution management
- Update to MapLibre GL JS v4.1.3
- Bundling issue solved by #79
- Updating with MapLibre GL JS v4.1
- Added client-side caching mechanism for tiles and fonts
- Language switching now only occurs on layers fueled by a MapTiler Cloud source
- 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
- 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 afterload
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 theready
event.
- The index now exposes the geocoding option types from the Client library
- 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)
- Added the Minimap control #54
- Added vector layer helpers to create easier:
- Add the
ColorRamp
class to create and customize color ramps, as well asColorRampCollection
with many predefined ones (as part of #61) - Improved the language management for increased compatibility with MapTiler Customize (#58)
- Fixed type export (#47)
- Upgrade to MapLibre v3.5.2 (#63)
- Update of TypeScript configuration
moduleResolution
toBundler
(#62)
- 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
- Update to
[email protected]
- Bringing back Map's
options.transformRequest
and.setTransformRequest()
- Fixed the MapTiler logo rel name and its nofollow feature
- Made the few necessary changes acording to updating the ML v3. No braking change for SDK API
- Updated from
[email protected]
to[email protected]
(this includes the switch to WebGL2)
- 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 optionlanguage
) or via global config (config.primaryLanguage
)
- The fallback language was
{name:latin}
, it is now replaced by{name}
, which is for the local name (present by default for many places whilelatin
is less frequent).
- Now exporting
MaptilerNavigationControl
- Documentation update for
Map
'soption.maptilerLogo
that was a bit unclear
- Terrain growing animation on enabling/disabling
- Added
Map
custom eventloadWithTerrain
- Added
Map
lifecycle methods.onLoadAsync()
and.onLoadWithTerrainAsync()
- Readme section was added about the event an methods above
- Updated from
[email protected]
to[email protected]
- Updated from
[email protected]
to[email protected]
, which changes slightly the look of the reference documentation. - Updated from
[email protected]
to[email protected]
- Updated from
[email protected]
to[email protected]
as well as all the Rollup plugins
- Added new styles:
MapStyle.STREETS.NIGHT
MapStyle.WINTER.DARK
MapStyle.OUTDOOR.DARK
- If the geolocate option is missing from
Map
constructor, then it's consideredfalse
- 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
- Since v1.0.7, the
Map
primary language (when custom) was no longer persistant on style update.
- The
apiKey
can now be specified in theMap
constructor (will propagate toconfig
) - The
language
can now be speficifed in theMap
constructo (will not propagete toconfig
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 theMap
instance to which they are added with the implementation of the.onAdd()
method.
- Now exposing
MaptilerGeolocateControl
for external initialization if needed - Now exposing
MaptilerTerrain
for external initialization if needed
- Terrain elevation is now using MapTiler's
terrain-rgb-v2
- Improved the geolocate control behavior by not zooming out
- Fixed the usage of relative path style JSON (in
Map
constructor and.setStyle()
)
- Fixed the dependency scheme of MapLibre import.
- Reducing the NPM size by ignoring documentation images
- First public version!