@maptiler/client 2.3.2 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # MapTiler Client Changelog
2
2
 
3
+ ## 2.4.0
4
+ ### New Features
5
+ - Added `elevation` option to Geolocation API
6
+
7
+ ### Bug Fixes
8
+ None
9
+
10
+ ### Others
11
+ None
12
+
3
13
  ## 2.3.2
4
14
  ### New Features
5
15
  None
@@ -1156,6 +1156,12 @@ const customMessages$3 = {
1156
1156
  async function info(options = {}) {
1157
1157
  const endpoint = new URL(`geolocation/ip.json`, defaults.maptilerApiURL);
1158
1158
  endpoint.searchParams.set("key", options.apiKey ?? config.apiKey);
1159
+ if ("elevation" in options) {
1160
+ endpoint.searchParams.set(
1161
+ "elevation",
1162
+ options.elevation ? "true" : "false"
1163
+ );
1164
+ }
1159
1165
  const urlWithParams = endpoint.toString();
1160
1166
  const res = await callFetch(urlWithParams);
1161
1167
  if (!res.ok) {