@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 +10 -0
- package/dist/maptiler-client.cjs +6 -0
- package/dist/maptiler-client.cjs.map +1 -1
- package/dist/maptiler-client.d.ts +10 -0
- package/dist/maptiler-client.min.mjs +1 -1
- package/dist/maptiler-client.mjs +6 -0
- package/dist/maptiler-client.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/maptiler-client.cjs
CHANGED
|
@@ -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) {
|