From 8229240aec0d67babb6b188acdf6a6b6b241f097 Mon Sep 17 00:00:00 2001 From: Sebastian Stryczek Date: Thu, 19 Dec 2024 21:57:12 +0100 Subject: [PATCH] RD-492_maplibre-v5.0.0-pre10 (#149) * Update code for using maplibre v5.0.0-pre10 * Update examples * Bump version --- demos/colorramps.html | 144 ++++++++++---------- demos/mountain.html | 105 +++++++-------- demos/readyevent.html | 116 ++++++++-------- demos/simple.html | 106 +++++++-------- demos/sky_day.html | 247 +++++++++++++++++----------------- demos/sky_day_globe.html | 145 -------------------- demos/sky_night.html | 249 +++++++++++++++++------------------ demos/sky_night_globe.html | 147 --------------------- demos/transform-request.html | 125 +++++++++--------- package-lock.json | 8 +- package.json | 4 +- readme.md | 2 +- src/Map.ts | 54 +++----- vite.config-umd.ts | 14 +- 14 files changed, 559 insertions(+), 907 deletions(-) delete mode 100644 demos/sky_day_globe.html delete mode 100644 demos/sky_night_globe.html diff --git a/demos/colorramps.html b/demos/colorramps.html index 309843c..a822878 100644 --- a/demos/colorramps.html +++ b/demos/colorramps.html @@ -1,96 +1,84 @@ + - - - + + + +
-
+ + - + // colorrampContainer.appendChild( document.createElement("p") ); + }); + - + + \ No newline at end of file diff --git a/demos/mountain.html b/demos/mountain.html index 885293f..b6e3f7f 100644 --- a/demos/mountain.html +++ b/demos/mountain.html @@ -1,67 +1,64 @@ - - MapTiler JS SDK example - + #style-picker-container { + position: absolute; + z-index: 2; + margin: 10px; + } + - - + + - -
-
- +
- + + - - + - Object.keys(maptilersdk.MapStyle).forEach(s => { - const styleOption = document.createElement('option'); - styleOption.value = maptilersdk.MapStyle[s].DEFAULT.id; - styleOption.innerHTML = s.replace("_", " ").toLowerCase(); - styleDropDown.appendChild(styleOption); - }) - - - - \ No newline at end of file diff --git a/demos/readyevent.html b/demos/readyevent.html index 66d6af9..aa79149 100644 --- a/demos/readyevent.html +++ b/demos/readyevent.html @@ -1,60 +1,60 @@ - - MapTiler JS SDK example - - - - - - -
- - - - + + + MapTiler JS SDK example + + + + + + +
+ + + + + \ No newline at end of file diff --git a/demos/simple.html b/demos/simple.html index 39cbf33..b3d45c4 100644 --- a/demos/simple.html +++ b/demos/simple.html @@ -1,68 +1,64 @@ - - MapTiler JS SDK example - + #style-picker-container { + position: absolute; + z-index: 2; + margin: 10px; + } + - - + + - -
-
- +
- + + - - + - Object.keys(maptilersdk.MapStyle).forEach(s => { - const styleOption = document.createElement('option'); - styleOption.value = maptilersdk.MapStyle[s].DEFAULT.id; - styleOption.innerHTML = s.replace("_", " ").toLowerCase(); - styleDropDown.appendChild(styleOption); - }) - - - - \ No newline at end of file diff --git a/demos/sky_day.html b/demos/sky_day.html index 1ae232e..69381d4 100644 --- a/demos/sky_day.html +++ b/demos/sky_day.html @@ -1,144 +1,143 @@ - - MapTiler JS SDK example - - - - - - -
-
-
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
+ + + MapTiler JS SDK example + + + + + + +
+
+
+ +
- - - - + + + - - \ No newline at end of file diff --git a/demos/sky_day_globe.html b/demos/sky_day_globe.html deleted file mode 100644 index a5ba14d..0000000 --- a/demos/sky_day_globe.html +++ /dev/null @@ -1,145 +0,0 @@ - - - MapTiler JS SDK example - - - - - - -
-
-
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
-
- - - - - - \ No newline at end of file diff --git a/demos/sky_night.html b/demos/sky_night.html index 3e1a32e..9244bc7 100644 --- a/demos/sky_night.html +++ b/demos/sky_night.html @@ -1,146 +1,143 @@ - - MapTiler JS SDK example - - - - - - -
-
-
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
+ + + MapTiler JS SDK example + + + + + + +
+
+
+ +
- - - - + + - - - \ No newline at end of file diff --git a/demos/sky_night_globe.html b/demos/sky_night_globe.html deleted file mode 100644 index dd5edd7..0000000 --- a/demos/sky_night_globe.html +++ /dev/null @@ -1,147 +0,0 @@ - - - MapTiler JS SDK example - - - - - - -
-
-
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
-
- - - - - - \ No newline at end of file diff --git a/demos/transform-request.html b/demos/transform-request.html index 008da91..1156c7b 100644 --- a/demos/transform-request.html +++ b/demos/transform-request.html @@ -1,81 +1,76 @@ - - MapTiler JS SDK example - + #style-picker-container { + position: absolute; + z-index: 2; + margin: 10px; + } + - - + + - -
-
- +
- + + - - + - - \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 863d290..eeaf133 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "@maptiler/client": "^2.2.0", "events": "^3.3.0", "js-base64": "^3.7.4", - "maplibre-gl": "^5.0.0-pre.9", + "maplibre-gl": "^5.0.0-pre.10", "uuid": "^9.0.0" }, "devDependencies": { @@ -2457,9 +2457,9 @@ } }, "node_modules/maplibre-gl": { - "version": "5.0.0-pre.9", - "resolved": "https://registry.npmjs.org/maplibre-gl/-/maplibre-gl-5.0.0-pre.9.tgz", - "integrity": "sha512-OmsFfVyg+kMs8f2sldt9yVq95epgEkaXpwMG4i5SR9Xap/SsfgAxOTHau+XhduQu5nq4uIgQMZEr3T//8AX27g==", + "version": "5.0.0-pre.10", + "resolved": "https://registry.npmjs.org/maplibre-gl/-/maplibre-gl-5.0.0-pre.10.tgz", + "integrity": "sha512-t+RmPTwP77ZOGkV/8UzMtUnk96Cyl/WUbuqWPJzsb7KiK5i7Mf/WzAM1t1r+vbSq22FKJtbZy3H5xu6cOXaOZw==", "license": "BSD-3-Clause", "dependencies": { "@mapbox/geojson-rewind": "^0.5.2", diff --git a/package.json b/package.json index 7269bdf..2202e3e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@maptiler/sdk", - "version": "3.0.0-rc.4", + "version": "3.0.0-rc.5", "description": "The Javascript & TypeScript map SDK tailored for MapTiler Cloud", "module": "dist/maptiler-sdk.mjs", "types": "dist/maptiler-sdk.d.ts", @@ -65,7 +65,7 @@ "@maptiler/client": "^2.2.0", "events": "^3.3.0", "js-base64": "^3.7.4", - "maplibre-gl": "^5.0.0-pre.9", + "maplibre-gl": "^5.0.0-pre.10", "uuid": "^9.0.0" } } diff --git a/readme.md b/readme.md index 9758bce..cb94960 100644 --- a/readme.md +++ b/readme.md @@ -136,7 +136,7 @@ The SDK hosted on our CDN is bundled as *[Universal Module Definition](https://g
- +