Skip to content

Commit

Permalink
RD-277: Update maplibre to v4.4.0 and adjusted typing (#89)
Browse files Browse the repository at this point in the history
* Update maplibre to v4.4.0 and adjusted typing

* update ML to v4.4.1

* cleaning example
  • Loading branch information
jonathanlurie authored Jun 18, 2024
1 parent 0d7043b commit 3588c8e
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 23 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
### Bug Fixes
### Others

## 2.1.0
### New Features
- Update from Maplibre v4.1.3 to v4.4.1 (see Maplibre's [changelog](https://github.com/maplibre/maplibre-gl-js/blob/main/CHANGELOG.md#441))
### Bug Fixes
- Floating buildings, fixed with the above update

## 2.0.3
### Bug Fixes
- Fixed issue in attribution control
Expand Down
54 changes: 35 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@maptiler/sdk",
"version": "2.0.3",
"version": "2.1.0",
"description": "The Javascript & TypeScript map SDK tailored for MapTiler Cloud",
"module": "dist/maptiler-sdk.mjs",
"types": "dist/maptiler-sdk.d.ts",
Expand Down Expand Up @@ -77,7 +77,7 @@
"@maptiler/client": "^1.8.1",
"events": "^3.3.0",
"js-base64": "^3.7.4",
"maplibre-gl": "^4.1.3",
"maplibre-gl": "4.4.1",
"uuid": "^9.0.0"
}
}
4 changes: 2 additions & 2 deletions src/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@ export function maptilerCloudTransformRequest(
* with the MapTiler Cloud-specific one: maptilerCloudTransformRequest
*/
export function combineTransformRequest(
userDefinedRTF?: RequestTransformFunction,
userDefinedRTF?: RequestTransformFunction | null,
): RequestTransformFunction {
return function (
url: string,
resourceType?: ResourceType,
): RequestParameters {
if (userDefinedRTF !== undefined) {
if (userDefinedRTF !== undefined && userDefinedRTF !== null) {
const rp = userDefinedRTF(url, resourceType);
const rp2 = maptilerCloudTransformRequest(rp?.url ?? "", resourceType);

Expand Down

0 comments on commit 3588c8e

Please sign in to comment.