API Client
Our map SDK is not only about maps! The SDK also wraps API calls to MapTiler Cloud API services in a series of handy functions.
The SDK uses the API Client JS library under the hood and exposes its functions so that they can be used directly from the SDK.
Example
These are the services wrapper functions that are built-in:
You can use any of the functions documented in the Client JS library. Check out the examples in the library's documentation.
To use these functions in the SDK, all you have to do is change maptilerClient
by maptilersdk
Examples
Reference documentation of MapTiler SDK JS, an extension of MapLibre GL JS