@maptiler/client 1.0.3 → 1.1.1

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.
Files changed (72) hide show
  1. package/dist/maptiler-client.cjs +586 -21
  2. package/dist/maptiler-client.cjs.map +1 -1
  3. package/dist/maptiler-client.d.ts +405 -2
  4. package/dist/maptiler-client.min.mjs +1 -1
  5. package/dist/maptiler-client.mjs +582 -22
  6. package/dist/maptiler-client.mjs.map +1 -1
  7. package/dist/maptiler-client.umd.js +586 -21
  8. package/dist/maptiler-client.umd.js.map +1 -1
  9. package/dist/maptiler-client.umd.min.js +1 -1
  10. package/docs/assets/custom.css +28 -1
  11. package/docs/classes/config.ClientConfig.html +9 -9
  12. package/docs/classes/services_ServiceError.ServiceError.html +7 -7
  13. package/docs/functions/language.getAutoLanguageGeocoding.html +5 -5
  14. package/docs/functions/services_simplify.default.html +5 -5
  15. package/docs/index.html +111 -30
  16. package/docs/modules/config.html +5 -5
  17. package/docs/modules/language.html +5 -5
  18. package/docs/modules/services_ServiceError.html +5 -5
  19. package/docs/modules/services_coordinates.html +5 -5
  20. package/docs/modules/services_data.html +5 -5
  21. package/docs/modules/services_geocoding.html +5 -5
  22. package/docs/modules/services_geolocation.html +5 -5
  23. package/docs/modules/services_simplify.html +5 -5
  24. package/docs/modules/services_staticMaps.html +5 -5
  25. package/docs/modules.html +4 -4
  26. package/docs/types/config.FetchFunction.html +5 -5
  27. package/docs/types/language.LanguageGeocodingString.html +5 -5
  28. package/docs/types/services_coordinates.CoordinateExport.html +5 -5
  29. package/docs/types/services_coordinates.CoordinateGrid.html +5 -5
  30. package/docs/types/services_coordinates.CoordinateId.html +5 -5
  31. package/docs/types/services_coordinates.CoordinateSearch.html +5 -5
  32. package/docs/types/services_coordinates.CoordinateSearchResult.html +5 -5
  33. package/docs/types/services_coordinates.CoordinateTransformResult.html +5 -5
  34. package/docs/types/services_coordinates.CoordinateTransformation.html +5 -5
  35. package/docs/types/services_coordinates.CoordinatesSearchOptions.html +5 -5
  36. package/docs/types/services_coordinates.CoordinatesTransformOptions.html +5 -5
  37. package/docs/types/services_coordinates.XYZ.html +5 -5
  38. package/docs/types/services_data.GetDataOptions.html +5 -5
  39. package/docs/types/services_geocoding.Coordinates.html +5 -5
  40. package/docs/types/services_geocoding.FeatureHierarchy.html +5 -5
  41. package/docs/types/services_geocoding.GeocodingFeature.html +5 -5
  42. package/docs/types/services_geocoding.GeocodingOptions.html +5 -5
  43. package/docs/types/services_geocoding.GeocodingSearchResult.html +5 -5
  44. package/docs/types/services_geocoding.ReverseGeocodingOptions.html +5 -5
  45. package/docs/types/services_geolocation.GeolocationInfoOptions.html +5 -5
  46. package/docs/types/services_geolocation.GeolocationResult.html +5 -5
  47. package/docs/types/services_staticMaps.AutomaticStaticMapOptions.html +5 -5
  48. package/docs/types/services_staticMaps.BoundedStaticMapOptions.html +5 -5
  49. package/docs/types/services_staticMaps.CenteredStaticMapOptions.html +5 -5
  50. package/docs/types/services_staticMaps.StaticMapBaseOptions.html +7 -7
  51. package/docs/types/services_staticMaps.StaticMapMarker.html +5 -5
  52. package/docs/variables/config.config.html +5 -5
  53. package/docs/variables/language.LanguageGeocoding.html +5 -5
  54. package/docs/variables/services_coordinates.coordinates.html +5 -5
  55. package/docs/variables/services_data.data.html +5 -5
  56. package/docs/variables/services_geocoding.geocoding.html +5 -5
  57. package/docs/variables/services_geolocation.geolocation.html +5 -5
  58. package/docs/variables/services_staticMaps.staticMaps.html +5 -5
  59. package/docsmd/README.md +145 -36
  60. package/docsmd/assets/custom.css +28 -1
  61. package/docsmd/classes/ClientConfig.md +5 -5
  62. package/docsmd/classes/MapStyleVariant.md +234 -0
  63. package/docsmd/classes/ReferenceMapStyle.md +169 -0
  64. package/docsmd/classes/ServiceError.md +3 -3
  65. package/examples/test-browser-umd.html +1 -1
  66. package/package.json +1 -1
  67. package/readme.md +86 -27
  68. package/src/index.ts +17 -0
  69. package/src/mapstyle.ts +874 -0
  70. package/src/services/staticMaps.ts +5 -4
  71. package/tsconfig.json +0 -1
  72. package/typedoc.css +28 -1
package/docs/index.html CHANGED
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>MapTiler Client - v1.0.3</title><meta name="description" content="Documentation for MapTiler Client - v1.0.3"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="assets/style.css"/><link rel="stylesheet" href="assets/highlight.css"/><link rel="stylesheet" href="assets/custom.css"/><script async src="assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
1
+ <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>MapTiler Client - v1.1.1</title><meta name="description" content="Documentation for MapTiler Client - v1.1.1"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="assets/style.css"/><link rel="stylesheet" href="assets/highlight.css"/><link rel="stylesheet" href="assets/custom.css"/><script async src="assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
2
2
  <div class="tsd-toolbar-contents container">
3
3
  <div class="table-cell" id="tsd-search" data-base=".">
4
4
  <div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
@@ -6,14 +6,14 @@
6
6
  <div id="tsd-toolbar-links"></div></div>
7
7
  <ul class="results">
8
8
  <li class="state loading">Preparing search index...</li>
9
- <li class="state failure">The search index is not available</li></ul><a href="index.html" class="title">MapTiler Client - v1.0.3</a></div>
9
+ <li class="state failure">The search index is not available</li></ul><a href="index.html" class="title">MapTiler Client - v1.1.1</a></div>
10
10
  <div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
11
11
  <div class="container container-main">
12
12
  <div class="col-8 col-content">
13
13
  <div class="tsd-page-title">
14
- <h2>MapTiler Client - v1.0.3</h2></div>
14
+ <h2>MapTiler Client - v1.1.1</h2></div>
15
15
  <div class="tsd-panel tsd-typography"><p align="center">
16
- <a href="https://www.maptiler.com/">offcial page →</a><br>
16
+ <a href="https://docs.maptiler.com/client-js/">offcial page →</a><br>
17
17
  <img src="images/maptiler-client-logo.svg" width="400px">
18
18
  </p>
19
19
 
@@ -29,21 +29,37 @@
29
29
  </p>
30
30
 
31
31
 
32
- <a href="#what-and-why" id="what-and-why" style="color: inherit; text-decoration: none;">
33
- <h1>What and why?</h1>
32
+ <a href="#api-client-library-for-javascript--typescript" id="api-client-library-for-javascript--typescript" style="color: inherit; text-decoration: none;">
33
+ <h1>API Client Library for JavaScript / TypeScript</h1>
34
+ </a>
35
+
36
+ <a href="#what" id="what" style="color: inherit; text-decoration: none;">
37
+ <h2>What?</h2>
34
38
  </a>
35
39
  <p>The <strong>MapTiler Client JS</strong> exposes a number of handy functions that wrap API call to <a href="https://docs.maptiler.com/cloud/api">MapTiler Cloud API services</a>, such as:</p>
36
40
  <ul>
37
- <li>Geocoding forward and reverse</li>
38
- <li>Geolocation from visitor&#39;s IP address</li>
39
- <li>Coordidinate systems search and tranform</li>
40
- <li>User data fetching as GeoJSON</li>
41
- <li>Static maps of all sorts</li>
41
+ <li><a href="#-geocoding">Geocoding forward and reverse</a></li>
42
+ <li><a href="#%EF%B8%8F%EF%B8%8F-geolocation">Geolocation from visitor&#39;s IP address</a></li>
43
+ <li><a href="#-coordinates">Coordidinate systems search and tranform</a></li>
44
+ <li><a href="#-data">User data fetching as GeoJSON</a></li>
45
+ <li><a href="#%EF%B8%8F-static-maps">Static maps of all sorts</a></li>
42
46
  </ul>
47
+
48
+ <a href="#why" id="why" style="color: inherit; text-decoration: none;">
49
+ <h2>Why?</h2>
50
+ </a>
43
51
  <p>The project is entirely written in TypeScript and all the function arguments are nicely documented and typed.</p>
44
- <blockquote>
45
- <p>📣 <em><strong>Note:</strong></em> If you need <em>this</em> API wrapper <strong>AND</strong> a complete SDK to display beautiful interactive maps, then checkout <a href="https://github.com/maptiler/maptiler-sdk-js">MapTiler SDK JS</a>, it contains it all!</p>
46
- </blockquote>
52
+ <ul>
53
+ <li>Better developer experience of working with APIs in the code editor - with parameter info, quick info, and member lists.<ul>
54
+ <li>Code completion: reducing typos and other common mistakes</li>
55
+ <li>Content assist and code hinting providing contextual help</li>
56
+ </ul>
57
+ </li>
58
+ <li>Type safety - for higher quality code and testing</li>
59
+ <li>Backward compatibility: guaranteed on changes to API endpoints</li>
60
+ <li>Runs: in Node.js or in browser</li>
61
+ <li>Open source license</li>
62
+ </ul>
47
63
 
48
64
  <a href="#install" id="install" style="color: inherit; text-decoration: none;">
49
65
  <h1>Install</h1>
@@ -54,7 +70,7 @@
54
70
  <a href="#api-documentation" id="api-documentation" style="color: inherit; text-decoration: none;">
55
71
  <h1>API documentation</h1>
56
72
  </a>
57
- <p>In addition to the details and examples provided in this readme, check out the <a href="docs/README.md">complete API documentation</a>).</p>
73
+ <p>In addition to the details and examples provided in this readme, check out the <a href="https://maptiler.github.io/maptiler-client-js">complete API documentation</a>.</p>
58
74
 
59
75
  <a href="#quick-start" id="quick-start" style="color: inherit; text-decoration: none;">
60
76
  <h1>Quick start</h1>
@@ -71,6 +87,9 @@
71
87
  <a href="#🔍-geocoding" id="🔍-geocoding" style="color: inherit; text-decoration: none;">
72
88
  <h2>🔍 Geocoding</h2>
73
89
  </a>
90
+ <blockquote>
91
+ <p>✅ Please, use geocoding functions only from client-side (browser) and do not 🚫 <strong>store</strong> or <strong>redistribute</strong> MapTiler Cloud API data. In case of doubt, consult the <a href="https://www.maptiler.com/cloud/terms/#explicitly-prohibited-use">terms</a> ⚖️</p>
92
+ </blockquote>
74
93
 
75
94
  <a href="#forward" id="forward" style="color: inherit; text-decoration: none;">
76
95
  <h3>Forward</h3>
@@ -84,7 +103,7 @@
84
103
  <li>one of more languages to get the results into</li>
85
104
  <li>a bounding geo box, to restrict the search to a given window</li>
86
105
  </ul>
87
- <p>Read more about forward geocoding on our official <a href="https://docs.maptiler.com/cloud/api/geocoding/#search-by-name-forward">API documentation</a>.</p>
106
+ <p>Read more about forward geocoding on our <a href="https://docs.maptiler.com/client-js/geocoding/#forward">official documentation</a>.</p>
88
107
 
89
108
  <a href="#reverse" id="reverse" style="color: inherit; text-decoration: none;">
90
109
  <h3>Reverse</h3>
@@ -93,7 +112,7 @@
93
112
  <pre><code class="language-ts"><span class="hl-2">// in an async function, or as a &#39;thenable&#39;:</span><br/><span class="hl-4">const</span><span class="hl-0"> </span><span class="hl-6">result</span><span class="hl-0"> = </span><span class="hl-3">await</span><span class="hl-0"> </span><span class="hl-5">maptilerClient</span><span class="hl-0">.</span><span class="hl-5">geocoding</span><span class="hl-0">.</span><span class="hl-7">reverse</span><span class="hl-0">([</span><span class="hl-8">6.249638</span><span class="hl-0">, </span><span class="hl-8">46.402056</span><span class="hl-0">]);</span>
94
113
  </code></pre>
95
114
  <p>The same option object as the forward geocoding can be provided.</p>
96
- <p>Read more about reverse geocoding on our official <a href="https://docs.maptiler.com/cloud/api/geocoding/#search-by-coordinates-reverse">API documentation</a>.</p>
115
+ <p>Read more about reverse geocoding on our <a href="https://docs.maptiler.com/client-js/geocoding/#reverse">official documentation</a>.</p>
97
116
 
98
117
  <a href="#language" id="language" style="color: inherit; text-decoration: none;">
99
118
  <h3>Language</h3>
@@ -101,16 +120,17 @@
101
120
  <p>For both <em>forward</em> and <em>reverse</em> geocoding, this library provides a list of supported languages as shorthands to <a href="https://en.wikipedia.org/wiki/ISO_639-1">ISO language codes</a>. The result will be provided in multiple languages if the <code>language</code> options is an array:</p>
102
121
  <pre><code class="language-ts"><span class="hl-4">const</span><span class="hl-0"> </span><span class="hl-6">result</span><span class="hl-0"> = </span><span class="hl-3">await</span><span class="hl-0"> </span><span class="hl-5">maptilerClient</span><span class="hl-0">.</span><span class="hl-5">geocoding</span><span class="hl-0">.</span><span class="hl-7">forward</span><span class="hl-0">(</span><span class="hl-1">&#39;paris&#39;</span><span class="hl-0">, {</span><span class="hl-5">language:</span><span class="hl-0"> [</span><span class="hl-5">maptilerClient</span><span class="hl-0">.</span><span class="hl-5">geocoding</span><span class="hl-0">.</span><span class="hl-5">languages</span><span class="hl-0">.</span><span class="hl-6">SPANISH</span><span class="hl-0">, </span><span class="hl-5">maptilerClient</span><span class="hl-0">.</span><span class="hl-5">geocoding</span><span class="hl-0">.</span><span class="hl-5">languages</span><span class="hl-0">.</span><span class="hl-6">KOREAN</span><span class="hl-0">]})</span>
103
122
  </code></pre>
104
- <p>The special language <code>AUTO</code> will detect the plateform/browser prefered language.</p>
123
+ <p>The special language <code>AUTO</code> will detect the platform/browser preferred language.</p>
105
124
 
106
125
  <a href="#🕵️♂️-geolocation" id="🕵️♂️-geolocation" style="color: inherit; text-decoration: none;">
107
126
  <h2>🕵️‍♂️ Geolocation</h2>
108
127
  </a>
109
- <p>The geolocation service provides an accurate location insight of a website visitor using its IP address.</p>
128
+ <p>The geolocation service provides location informations of a visitor using its IP address.</p>
129
+ <p>The geolocation uses the IP address of a visitors to provide informations about their location, such as city, region, country, timezone, etc. The precision is lower than GPS but does not require visitors to explicitely enable the location service from their web browser.</p>
110
130
  <p>There is only a single function:</p>
111
131
  <pre><code class="language-ts"><span class="hl-2">// in an async function, or as a &#39;thenable&#39;:</span><br/><span class="hl-4">const</span><span class="hl-0"> </span><span class="hl-6">result</span><span class="hl-0"> = </span><span class="hl-3">await</span><span class="hl-0"> </span><span class="hl-5">maptilerClient</span><span class="hl-0">.</span><span class="hl-5">geolocation</span><span class="hl-0">.</span><span class="hl-7">info</span><span class="hl-0">();</span>
112
132
  </code></pre>
113
- <p>Read more about geolocation on our official <a href="https://docs.maptiler.com/cloud/api/geolocation/">API documentation</a>.</p>
133
+ <p>Read more about geolocation on our <a href="https://docs.maptiler.com/client-js/geolocation/">official documentation</a>.</p>
114
134
 
115
135
  <a href="#🌐-coordinates" id="🌐-coordinates" style="color: inherit; text-decoration: none;">
116
136
  <h2>🌐 Coordinates</h2>
@@ -124,7 +144,7 @@
124
144
  <pre><code class="language-ts"><span class="hl-2">// in an async function, or as a &#39;thenable&#39;:</span><br/><span class="hl-4">const</span><span class="hl-0"> </span><span class="hl-6">resultA</span><span class="hl-0"> = </span><span class="hl-3">await</span><span class="hl-0"> </span><span class="hl-5">maptilerClient</span><span class="hl-0">.</span><span class="hl-5">coordinates</span><span class="hl-0">.</span><span class="hl-7">search</span><span class="hl-0">(</span><span class="hl-1">&#39;mercator&#39;</span><span class="hl-0">);</span><br/><span class="hl-4">const</span><span class="hl-0"> </span><span class="hl-6">resultB</span><span class="hl-0"> = </span><span class="hl-3">await</span><span class="hl-0"> </span><span class="hl-5">maptilerClient</span><span class="hl-0">.</span><span class="hl-5">coordinates</span><span class="hl-0">.</span><span class="hl-7">search</span><span class="hl-0">(</span><span class="hl-1">&#39;plate carree&#39;</span><span class="hl-0">);</span><br/><span class="hl-4">const</span><span class="hl-0"> </span><span class="hl-6">resultC</span><span class="hl-0"> = </span><span class="hl-3">await</span><span class="hl-0"> </span><span class="hl-5">maptilerClient</span><span class="hl-0">.</span><span class="hl-5">coordinates</span><span class="hl-0">.</span><span class="hl-7">search</span><span class="hl-0">(</span><span class="hl-1">&#39;france&#39;</span><span class="hl-0">);</span><br/><span class="hl-4">const</span><span class="hl-0"> </span><span class="hl-6">resultD</span><span class="hl-0"> = </span><span class="hl-3">await</span><span class="hl-0"> </span><span class="hl-5">maptilerClient</span><span class="hl-0">.</span><span class="hl-5">coordinates</span><span class="hl-0">.</span><span class="hl-7">search</span><span class="hl-0">(</span><span class="hl-1">&#39;code:4326&#39;</span><span class="hl-0">, {</span><span class="hl-5">transformations:</span><span class="hl-0"> </span><span class="hl-4">true</span><span class="hl-0">}));</span>
125
145
  </code></pre>
126
146
  <p>The <code>transformations</code> options retrieves a lot more details about the CRS that MapTiler API is able to transform to/from than just their IDs.</p>
127
- <p>Read more about searching coordinate systems on our official <a href="https://docs.maptiler.com/cloud/api/coordinates/#search-coordinate-systems">API documentation</a>.</p>
147
+ <p>Read more about searching coordinate systems on our <a href="https://docs.maptiler.com/client-js/coordinates/#search">official documentation</a>.</p>
128
148
 
129
149
  <a href="#transform" id="transform" style="color: inherit; text-decoration: none;">
130
150
  <h3>Transform</h3>
@@ -133,7 +153,7 @@
133
153
  <p>If not provided, both the source (<code>sourceCrs</code>) and the destination (<code>targetCrs</code>) are default to <strong>EPSG:4326</strong> (in other words, <a href="https://epsg.io/4326">WGS84</a>). Here is how to use this feature:</p>
134
154
  <pre><code class="language-ts"><span class="hl-2">// in an async function, or as a &#39;thenable&#39;:</span><br/><br/><span class="hl-2">// Providing one coordinate to transform, with a target CRS being EPSG:9793 (RGF93 v2 / Lambert-93, France official CRS)</span><br/><span class="hl-4">const</span><span class="hl-0"> </span><span class="hl-6">resultA</span><span class="hl-0"> = </span><span class="hl-3">await</span><span class="hl-0"> </span><span class="hl-5">maptilerClient</span><span class="hl-0">.</span><span class="hl-5">coordinates</span><span class="hl-0">.</span><span class="hl-7">transform</span><span class="hl-0">([</span><span class="hl-8">1</span><span class="hl-0">, </span><span class="hl-8">45</span><span class="hl-0">], {</span><span class="hl-5">targetCrs:</span><span class="hl-0"> </span><span class="hl-8">9793</span><span class="hl-0">})</span><br/><br/><span class="hl-2">// Using the same logic, we can pass up to 50 coordinates to be transformed</span><br/><span class="hl-4">const</span><span class="hl-0"> </span><span class="hl-6">resultB</span><span class="hl-0"> = </span><span class="hl-3">await</span><span class="hl-0"> </span><span class="hl-5">maptilerClient</span><span class="hl-0">.</span><span class="hl-5">coordinates</span><span class="hl-0">.</span><span class="hl-7">transform</span><span class="hl-0">([[</span><span class="hl-8">10</span><span class="hl-0">, </span><span class="hl-8">48</span><span class="hl-0">], [</span><span class="hl-8">1</span><span class="hl-0">, </span><span class="hl-8">45</span><span class="hl-0">]], {</span><span class="hl-5">targetCrs:</span><span class="hl-0"> </span><span class="hl-8">9793</span><span class="hl-0">})</span>
135
155
  </code></pre>
136
- <p>Read more about transforming coordinates on our official <a href="https://docs.maptiler.com/cloud/api/coordinates/#transform-coordinates">API documentation</a>.</p>
156
+ <p>Read more about transforming coordinates on our <a href="https://docs.maptiler.com/client-js/coordinates/#transform">official documentation</a>.</p>
137
157
 
138
158
  <a href="#💽-data" id="💽-data" style="color: inherit; text-decoration: none;">
139
159
  <h2>💽 Data</h2>
@@ -142,10 +162,14 @@
142
162
  <pre><code class="language-ts"><span class="hl-2">// in an async function, or as a &#39;thenable&#39;:</span><br/><span class="hl-4">const</span><span class="hl-0"> </span><span class="hl-6">result</span><span class="hl-0"> = </span><span class="hl-3">await</span><span class="hl-0"> </span><span class="hl-5">maptilerClient</span><span class="hl-0">.</span><span class="hl-5">data</span><span class="hl-0">.</span><span class="hl-7">get</span><span class="hl-0">(</span><span class="hl-1">&#39;my-dataset-unique-id&#39;</span><span class="hl-0">)</span>
143
163
  </code></pre>
144
164
  <p>Since the result is a GeoJSON, it can easily be added to a <code>map</code> with <code>.addSource()</code> and <code>.addLayer()</code>.</p>
165
+ <p>Read more about fetching your own data on our <a href="https://docs.maptiler.com/client-js/data/">official documentation</a>.</p>
145
166
 
146
167
  <a href="#🗺️-static-maps" id="🗺️-static-maps" style="color: inherit; text-decoration: none;">
147
168
  <h2>🗺️ Static maps</h2>
148
169
  </a>
170
+ <blockquote>
171
+ <p>✅ Please, use static maps URLs only from client side <code>&lt;img&gt;</code> elements, and do not 🚫 store or redistribute the static map files. In case of doubt, consult the <a href="https://www.maptiler.com/cloud/terms/#explicitly-prohibited-use">terms</a> ⚖️</p>
172
+ </blockquote>
149
173
  <p>Maptiler Cloud provides many possibilities for creating static maps as PNG, JPEG or WebP images. They all offer the possibilities to:</p>
150
174
  <ul>
151
175
  <li>Choose from one of the MapTiler style or your own</li>
@@ -154,14 +178,66 @@
154
178
  </ul>
155
179
  <p>Three modes are available: <code>centered</code>, <code>bounded</code> and <code>automatic</code>.</p>
156
180
  <blockquote>
157
- <p>📣 <em><strong>important:</strong></em> Contrary to the geolocation/geocoding/coordinates/data service wrappers, the static maps function <strong>does not</strong> perform any query to the MapTiler API, instead they build the image URL. We took this decision because images are most likely going to be displayed in <code>&lt;img src=&quot;path.png&quot;&gt;&lt;/img&gt;</code> markups and will naturaly be fetched by the web browser.</p>
181
+ <p>📣 <em><strong>important:</strong></em> <span style="text-decoration: underline">only image <strong>URLs</strong> are returned.</span><br>Contrary to the other functions of this library, the static map functions <strong>do not</strong> perform any query to MapTiler Cloud API, instead they build the image URL for you to use in <code>&lt;img&gt;</code> elements.</p>
158
182
  </blockquote>
159
183
 
184
+ <a href="#map-styles" id="map-styles" style="color: inherit; text-decoration: none;">
185
+ <h3>Map Styles</h3>
186
+ </a>
187
+ <p>In the following static map functions, the <code>option</code> object features a <code>style</code> property that can be a string or one of the built-in style shorthand. Here is the full list:</p>
188
+ <ul>
189
+ <li><code>MapStyle.STREETS</code>, reference style for navigation and city exploration<ul>
190
+ <li><code>MapStyle.STREETS.DARK</code> (variant)</li>
191
+ <li><code>MapStyle.STREETS.LIGHT</code> (variant)</li>
192
+ <li><code>MapStyle.STREETS.PASTEL</code> (variant)</li>
193
+ </ul>
194
+ </li>
195
+ <li><code>MapStyle.OUTDOOR</code> reference style for adventure</li>
196
+ <li><code>MapStyle.WINTER</code> reference style for winter adventure</li>
197
+ <li><code>MapStyle.SATELLITE</code> reference style satellite and airborne imagery (no variants)</li>
198
+ <li><code>MapStyle.HYBRID</code> reference style satellite and airborne imagery with labels (no variants)</li>
199
+ <li><code>MapStyle.BASIC</code> reference style for minimalist design and general purpose<ul>
200
+ <li><code>MapStyle.BASIC.DARK</code> (variant)</li>
201
+ <li><code>MapStyle.BASIC.LIGHT</code> (variant)</li>
202
+ </ul>
203
+ </li>
204
+ <li><code>MapStyle.BRIGHT</code> reference style for high contrast navigation<ul>
205
+ <li><code>MapStyle.BRIGHT.DARK</code> (variant)</li>
206
+ <li><code>MapStyle.BRIGHT.LIGHT</code> (variant)</li>
207
+ <li><code>MapStyle.BRIGHT.PASTEL</code> (variant)</li>
208
+ </ul>
209
+ </li>
210
+ <li><code>MapStyle.TOPO</code> reference style for topographic study<ul>
211
+ <li><code>MapStyle.TOPO.SHINY</code> (variant)</li>
212
+ <li><code>MapStyle.TOPO.PASTEL</code> (variant)</li>
213
+ <li><code>MapStyle.TOPO.TOPOGRAPHIQUE</code> (variant)</li>
214
+ </ul>
215
+ </li>
216
+ <li><code>MapStyle.VOYAGER</code> reference style for stylish yet minimalist maps<ul>
217
+ <li><code>MapStyle.VOYAGER.DARK</code> (variant)</li>
218
+ <li><code>MapStyle.VOYAGER.LIGHT</code> (variant)</li>
219
+ <li><code>MapStyle.VOYAGER.VINTAGE</code> (variant)</li>
220
+ </ul>
221
+ </li>
222
+ <li><code>MapStyle.TONER</code> reference style for very high contrast stylish maps <ul>
223
+ <li><code>MapStyle.TONER.BACKGROUND</code> (variant)</li>
224
+ <li><code>MapStyle.TONER.LITE</code> (variant)</li>
225
+ <li><code>MapStyle.TONER.LINES</code> (variant)</li>
226
+ </ul>
227
+ </li>
228
+ <li><code>MapStyle.OPENSTREETMAP</code> (reference style, this one does not have any variants)</li>
229
+ <li><code>MapStyle.STAGE</code>, the perfect style for data visualization, with very little noise<ul>
230
+ <li><code>MapStyle.STAGE.DARK</code> (variant)</li>
231
+ <li><code>MapStyle.STAGE.LIGHT</code> (variant)</li>
232
+ </ul>
233
+ </li>
234
+ </ul>
235
+
160
236
  <a href="#centered-static-maps" id="centered-static-maps" style="color: inherit; text-decoration: none;">
161
237
  <h3>Centered static maps</h3>
162
238
  </a>
163
239
  <p>This type of map is centered on a longitude-latitude coordinate and the zoom level must also be provided (from <code>0</code>: very zoomed out, to <code>22</code>: very zoomed in).<br>Note that if a path or markers are provided, the framing of the map will not automatically adapt to include those (use the <code>automatic</code> mode for that).</p>
164
- <pre><code class="language-ts"><span class="hl-4">const</span><span class="hl-0"> </span><span class="hl-6">imageLink</span><span class="hl-0"> = </span><span class="hl-5">maptiler</span><span class="hl-0">.</span><span class="hl-5">staticMaps</span><span class="hl-0">.</span><span class="hl-7">centered</span><span class="hl-0">(</span><br/><span class="hl-0"> </span><span class="hl-2">// center position (Boston)</span><br/><span class="hl-0"> [-</span><span class="hl-8">71.06080</span><span class="hl-0">, </span><span class="hl-8">42.362114</span><span class="hl-0">], </span><br/><br/><span class="hl-0"> </span><span class="hl-2">// zoom level</span><br/><span class="hl-0"> </span><span class="hl-8">12.5</span><span class="hl-0">, </span><br/><span class="hl-0"> </span><br/><span class="hl-0"> </span><span class="hl-2">// Options</span><br/><span class="hl-0"> {</span><br/><span class="hl-0"> </span><span class="hl-2">// Request a hiDPI/Retina image</span><br/><span class="hl-0"> </span><span class="hl-5">hiDPI:</span><span class="hl-0"> </span><span class="hl-4">true</span><span class="hl-0">,</span><br/><br/><span class="hl-0"> </span><span class="hl-2">// Output image size</span><br/><span class="hl-0"> </span><span class="hl-5">width:</span><span class="hl-0"> </span><span class="hl-8">1000</span><span class="hl-0">,</span><br/><span class="hl-0"> </span><span class="hl-5">height:</span><span class="hl-0"> </span><span class="hl-8">1000</span><span class="hl-0">,</span><br/><br/><span class="hl-0"> </span><span class="hl-2">// Map style</span><br/><span class="hl-0"> </span><span class="hl-5">style:</span><span class="hl-0"> </span><span class="hl-1">&#39;streets-v2&#39;</span><span class="hl-0">,</span><br/><span class="hl-0"> });</span>
240
+ <pre><code class="language-ts"><span class="hl-4">const</span><span class="hl-0"> </span><span class="hl-6">imageLink</span><span class="hl-0"> = </span><span class="hl-5">maptilerClient</span><span class="hl-0">.</span><span class="hl-5">staticMaps</span><span class="hl-0">.</span><span class="hl-7">centered</span><span class="hl-0">(</span><br/><span class="hl-0"> </span><span class="hl-2">// center position (Boston)</span><br/><span class="hl-0"> [-</span><span class="hl-8">71.06080</span><span class="hl-0">, </span><span class="hl-8">42.362114</span><span class="hl-0">], </span><br/><br/><span class="hl-0"> </span><span class="hl-2">// zoom level</span><br/><span class="hl-0"> </span><span class="hl-8">12.5</span><span class="hl-0">, </span><br/><span class="hl-0"> </span><br/><span class="hl-0"> </span><span class="hl-2">// Options</span><br/><span class="hl-0"> {</span><br/><span class="hl-0"> </span><span class="hl-2">// Request a hiDPI/Retina image</span><br/><span class="hl-0"> </span><span class="hl-5">hiDPI:</span><span class="hl-0"> </span><span class="hl-4">true</span><span class="hl-0">,</span><br/><br/><span class="hl-0"> </span><span class="hl-2">// Output image size</span><br/><span class="hl-0"> </span><span class="hl-5">width:</span><span class="hl-0"> </span><span class="hl-8">1000</span><span class="hl-0">,</span><br/><span class="hl-0"> </span><span class="hl-5">height:</span><span class="hl-0"> </span><span class="hl-8">1000</span><span class="hl-0">,</span><br/><br/><span class="hl-0"> </span><span class="hl-2">// Map style</span><br/><span class="hl-0"> </span><span class="hl-5">style:</span><span class="hl-0"> </span><span class="hl-5">maptilerClient</span><span class="hl-0">.</span><span class="hl-5">MapStyle</span><span class="hl-0">.</span><span class="hl-6">OUTDOOR</span><span class="hl-0">,</span><br/><span class="hl-0"> });</span>
165
241
  </code></pre>
166
242
  <p>Read more about centered static maps on our official <a href="https://docs.maptiler.com/cloud/api/static-maps/#center-based-image">API documentation</a>.</p>
167
243
 
@@ -169,7 +245,7 @@
169
245
  <h3>Bounded static maps</h3>
170
246
  </a>
171
247
  <p>This type of map requires a bounding box made of two points: the south-west bound and the north-east bound. The zoom level cannot be provided and is automatically deduced from the size of the bounding box.</p>
172
- <pre><code class="language-ts"><span class="hl-4">const</span><span class="hl-0"> </span><span class="hl-6">imageLink</span><span class="hl-0"> = </span><span class="hl-5">maptiler</span><span class="hl-0">.</span><span class="hl-5">staticMaps</span><span class="hl-0">.</span><span class="hl-7">bounded</span><span class="hl-0">(</span><br/><span class="hl-0"> </span><span class="hl-2">// The bounding box on Europe</span><br/><span class="hl-0"> [</span><br/><span class="hl-0"> -</span><span class="hl-8">24</span><span class="hl-0">, </span><span class="hl-2">// west bound (min x)</span><br/><span class="hl-0"> </span><span class="hl-8">34.5</span><span class="hl-0">, </span><span class="hl-2">// south bound (min y)</span><br/><span class="hl-0"> </span><span class="hl-8">32</span><span class="hl-0">, </span><span class="hl-2">// east bound (max x)</span><br/><span class="hl-0"> </span><span class="hl-8">71</span><span class="hl-0">, </span><span class="hl-2">// north bound (max y)</span><br/><span class="hl-0"> ],</span><br/><br/><span class="hl-0"> </span><span class="hl-2">// Options</span><br/><span class="hl-0"> {</span><br/><span class="hl-0"> </span><span class="hl-5">hiDPI:</span><span class="hl-0"> </span><span class="hl-4">true</span><span class="hl-0">,</span><br/><span class="hl-0"> </span><span class="hl-5">width:</span><span class="hl-0"> </span><span class="hl-8">2048</span><span class="hl-0">,</span><br/><span class="hl-0"> </span><span class="hl-5">height:</span><span class="hl-0"> </span><span class="hl-8">2048</span><span class="hl-0">,</span><br/><span class="hl-0"> </span><span class="hl-5">style:</span><span class="hl-0"> </span><span class="hl-1">&#39;streets-v2&#39;</span><span class="hl-0">,</span><br/><br/><span class="hl-0"> </span><span class="hl-2">// Extra space that will add around the bounding box, in percentage</span><br/><span class="hl-0"> </span><span class="hl-2">// (0.1 = 10% is actually the dafault)</span><br/><span class="hl-0"> </span><span class="hl-5">padding:</span><span class="hl-0"> </span><span class="hl-8">0.1</span><br/><span class="hl-0"> });</span>
248
+ <pre><code class="language-ts"><span class="hl-4">const</span><span class="hl-0"> </span><span class="hl-6">imageLink</span><span class="hl-0"> = </span><span class="hl-5">maptilerClient</span><span class="hl-0">.</span><span class="hl-5">staticMaps</span><span class="hl-0">.</span><span class="hl-7">bounded</span><span class="hl-0">(</span><br/><span class="hl-0"> </span><span class="hl-2">// The bounding box on Europe</span><br/><span class="hl-0"> [</span><br/><span class="hl-0"> -</span><span class="hl-8">24</span><span class="hl-0">, </span><span class="hl-2">// west bound (min x)</span><br/><span class="hl-0"> </span><span class="hl-8">34.5</span><span class="hl-0">, </span><span class="hl-2">// south bound (min y)</span><br/><span class="hl-0"> </span><span class="hl-8">32</span><span class="hl-0">, </span><span class="hl-2">// east bound (max x)</span><br/><span class="hl-0"> </span><span class="hl-8">71</span><span class="hl-0">, </span><span class="hl-2">// north bound (max y)</span><br/><span class="hl-0"> ],</span><br/><br/><span class="hl-0"> </span><span class="hl-2">// Options</span><br/><span class="hl-0"> {</span><br/><span class="hl-0"> </span><span class="hl-5">hiDPI:</span><span class="hl-0"> </span><span class="hl-4">true</span><span class="hl-0">,</span><br/><span class="hl-0"> </span><span class="hl-5">width:</span><span class="hl-0"> </span><span class="hl-8">2048</span><span class="hl-0">,</span><br/><span class="hl-0"> </span><span class="hl-5">height:</span><span class="hl-0"> </span><span class="hl-8">2048</span><span class="hl-0">,</span><br/><span class="hl-0"> </span><span class="hl-5">style:</span><span class="hl-0"> </span><span class="hl-5">maptilerClient</span><span class="hl-0">.</span><span class="hl-5">MapStyle</span><span class="hl-0">.</span><span class="hl-6">STREETS</span><span class="hl-0">.</span><span class="hl-6">DARK</span><span class="hl-0">,</span><br/><br/><span class="hl-0"> </span><span class="hl-2">// Extra space that will add around the bounding box, in percentage</span><br/><span class="hl-0"> </span><span class="hl-2">// (0.1 = 10% is actually the dafault)</span><br/><span class="hl-0"> </span><span class="hl-5">padding:</span><span class="hl-0"> </span><span class="hl-8">0.1</span><br/><span class="hl-0"> });</span>
173
249
  </code></pre>
174
250
  <p>Since the zoom level cannot be provided, the level of details is dictated by the size of the output image. here is an example:</p>
175
251
  <table>
@@ -184,7 +260,7 @@
184
260
  <td align="center"><img src="images/screenshots/static-bounded-europe-1024.png" alt=""></td>
185
261
  </tr>
186
262
  </tbody></table>
187
- <p>As you may notice, the geo bounding box could have very different proportions than the output image size. In the following example, we place the very same bounding box around Portugal, which has a this particular strip looking shape. We also add a <code>path</code> that repeats exactely the same bounding box to show the difference between the provided bounding box and the final image. We kept the default padding of 10%:</p>
263
+ <p>As you may notice, the geo bounding box could have very different proportions than the output image size. In the following example, we place the very same bounding box around Portugal, which has a this particular strip looking shape. We also add a <code>path</code> that repeats exactly the same bounding box to show the difference between the provided bounding box and the final image. We kept the default padding of 10%:</p>
188
264
  <table>
189
265
  <thead>
190
266
  <tr>
@@ -203,13 +279,13 @@
203
279
  <h3>Automatic static maps</h3>
204
280
  </a>
205
281
  <p>As we have seen with centered and bounded maps, providing all the parameters is nice but can be cumbersome for the simplest use cases. This is why MapTiler Cloud also provides static maps that fits automatically whatever you need to place inside: path or markers.</p>
206
- <p>In the following example, we are going to load a cycling track recorded by one of our team members in Montreal, Canada. The track, originally a GPX file, was pushed to MapTiler Data and is now made avalable as a GeoJSON:</p>
207
- <pre><code class="language-ts"><span class="hl-2">// Fetching the GeoJSON</span><br/><span class="hl-4">const</span><span class="hl-0"> </span><span class="hl-6">bikeTrack</span><span class="hl-0"> = </span><span class="hl-3">await</span><span class="hl-0"> </span><span class="hl-5">maptilerClient</span><span class="hl-0">.</span><span class="hl-5">data</span><span class="hl-0">.</span><span class="hl-7">get</span><span class="hl-0">(</span><span class="hl-1">&#39;the-id-of-a-bike-track-in-montreal&#39;</span><span class="hl-0">);</span><br/><br/><span class="hl-2">// Extracting the track points with the shape [[lng, lat], [lng, lat], ...]</span><br/><span class="hl-4">const</span><span class="hl-0"> </span><span class="hl-6">trackPoints</span><span class="hl-0"> = </span><span class="hl-5">bikeTrack</span><span class="hl-0">.</span><span class="hl-5">features</span><span class="hl-0">[</span><span class="hl-8">0</span><span class="hl-0">].</span><span class="hl-5">geometry</span><span class="hl-0">.</span><span class="hl-5">coordinates</span><span class="hl-0">[</span><span class="hl-8">0</span><span class="hl-0">]</span><br/><span class="hl-0"> .</span><span class="hl-7">map</span><span class="hl-0">(</span><span class="hl-5">p</span><span class="hl-0"> </span><span class="hl-4">=&gt;</span><span class="hl-0"> </span><span class="hl-5">p</span><span class="hl-0">.</span><span class="hl-7">slice</span><span class="hl-0">(</span><span class="hl-8">0</span><span class="hl-0">, </span><span class="hl-8">2</span><span class="hl-0">));</span><br/><br/><span class="hl-4">const</span><span class="hl-0"> </span><span class="hl-6">imageLink</span><span class="hl-0"> = </span><span class="hl-5">maptiler</span><span class="hl-0">.</span><span class="hl-5">staticMaps</span><span class="hl-0">.</span><span class="hl-7">automatic</span><span class="hl-0">({</span><br/><span class="hl-0"> </span><span class="hl-2">// hiDPI/Retina precision</span><br/><span class="hl-0"> </span><span class="hl-5">hiDPI:</span><span class="hl-0"> </span><span class="hl-4">true</span><span class="hl-0">,</span><br/><br/><span class="hl-0"> </span><span class="hl-2">// A farily large output image</span><br/><span class="hl-0"> </span><span class="hl-5">width:</span><span class="hl-0"> </span><span class="hl-8">2048</span><span class="hl-0">,</span><br/><span class="hl-0"> </span><span class="hl-5">height:</span><span class="hl-0"> </span><span class="hl-8">1024</span><span class="hl-0"> ,</span><br/><br/><span class="hl-0"> </span><span class="hl-2">// A grey style on which the track will pop!</span><br/><span class="hl-0"> </span><span class="hl-5">style:</span><span class="hl-0"> </span><span class="hl-1">&#39;streets-v2-light&#39;</span><span class="hl-0">,</span><br/><br/><span class="hl-0"> </span><span class="hl-2">// Draw a path with the trackpoints</span><br/><span class="hl-0"> </span><span class="hl-5">path:</span><span class="hl-0"> </span><span class="hl-5">trackPoints</span><span class="hl-0">,</span><br/><br/><span class="hl-0"> </span><span class="hl-2">// Adding a marker for the starting point, with a custom color (array of shape [lng, lat, color])</span><br/><span class="hl-0"> </span><span class="hl-5">marker:</span><span class="hl-0"> [</span><span class="hl-5">trackPoints</span><span class="hl-0">[</span><span class="hl-8">0</span><span class="hl-0">][</span><span class="hl-8">0</span><span class="hl-0">], </span><span class="hl-5">trackPoints</span><span class="hl-0">[</span><span class="hl-8">0</span><span class="hl-0">][</span><span class="hl-8">1</span><span class="hl-0">], </span><span class="hl-1">&#39;#0a0&#39;</span><span class="hl-0">],</span><br/><br/><span class="hl-0"> </span><span class="hl-2">// Showing the track in red</span><br/><span class="hl-0"> </span><span class="hl-5">pathStrokeColor:</span><span class="hl-0"> </span><span class="hl-1">&#39;red&#39;</span><span class="hl-0">,</span><br/><span class="hl-0">});</span>
282
+ <p>In the following example, we are going to load a cycling track recorded by one of our team members in Montreal, Canada. The track, originally a GPX file, was pushed to MapTiler Data and is now made available as a GeoJSON:</p>
283
+ <pre><code class="language-ts"><span class="hl-2">// Fetching the GeoJSON</span><br/><span class="hl-4">const</span><span class="hl-0"> </span><span class="hl-6">bikeTrack</span><span class="hl-0"> = </span><span class="hl-3">await</span><span class="hl-0"> </span><span class="hl-5">maptilerClient</span><span class="hl-0">.</span><span class="hl-5">data</span><span class="hl-0">.</span><span class="hl-7">get</span><span class="hl-0">(</span><span class="hl-1">&#39;the-id-of-a-bike-track-in-montreal&#39;</span><span class="hl-0">);</span><br/><br/><span class="hl-2">// Extracting the track points with the shape [[lng, lat], [lng, lat], ...]</span><br/><span class="hl-4">const</span><span class="hl-0"> </span><span class="hl-6">trackPoints</span><span class="hl-0"> = </span><span class="hl-5">bikeTrack</span><span class="hl-0">.</span><span class="hl-5">features</span><span class="hl-0">[</span><span class="hl-8">0</span><span class="hl-0">].</span><span class="hl-5">geometry</span><span class="hl-0">.</span><span class="hl-5">coordinates</span><span class="hl-0">[</span><span class="hl-8">0</span><span class="hl-0">]</span><br/><span class="hl-0"> .</span><span class="hl-7">map</span><span class="hl-0">(</span><span class="hl-5">p</span><span class="hl-0"> </span><span class="hl-4">=&gt;</span><span class="hl-0"> </span><span class="hl-5">p</span><span class="hl-0">.</span><span class="hl-7">slice</span><span class="hl-0">(</span><span class="hl-8">0</span><span class="hl-0">, </span><span class="hl-8">2</span><span class="hl-0">));</span><br/><br/><span class="hl-4">const</span><span class="hl-0"> </span><span class="hl-6">imageLink</span><span class="hl-0"> = </span><span class="hl-5">maptilerClient</span><span class="hl-0">.</span><span class="hl-5">staticMaps</span><span class="hl-0">.</span><span class="hl-7">automatic</span><span class="hl-0">({</span><br/><span class="hl-0"> </span><span class="hl-2">// hiDPI/Retina precision</span><br/><span class="hl-0"> </span><span class="hl-5">hiDPI:</span><span class="hl-0"> </span><span class="hl-4">true</span><span class="hl-0">,</span><br/><br/><span class="hl-0"> </span><span class="hl-2">// A fairly large output image</span><br/><span class="hl-0"> </span><span class="hl-5">width:</span><span class="hl-0"> </span><span class="hl-8">2048</span><span class="hl-0">,</span><br/><span class="hl-0"> </span><span class="hl-5">height:</span><span class="hl-0"> </span><span class="hl-8">1024</span><span class="hl-0"> ,</span><br/><br/><span class="hl-0"> </span><span class="hl-2">// A grey style on which the track will pop!</span><br/><span class="hl-0"> </span><span class="hl-5">style:</span><span class="hl-0"> </span><span class="hl-5">maptilerClient</span><span class="hl-0">.</span><span class="hl-5">MapStyle</span><span class="hl-0">.</span><span class="hl-6">STREETS</span><span class="hl-0">.</span><span class="hl-6">LIGHT</span><span class="hl-0">,</span><br/><br/><span class="hl-0"> </span><span class="hl-2">// Draw a path with the trackpoints</span><br/><span class="hl-0"> </span><span class="hl-5">path:</span><span class="hl-0"> </span><span class="hl-5">trackPoints</span><span class="hl-0">,</span><br/><br/><span class="hl-0"> </span><span class="hl-2">// Adding a marker for the starting point, with a custom color (array of shape [lng, lat, color])</span><br/><span class="hl-0"> </span><span class="hl-5">marker:</span><span class="hl-0"> [</span><span class="hl-5">trackPoints</span><span class="hl-0">[</span><span class="hl-8">0</span><span class="hl-0">][</span><span class="hl-8">0</span><span class="hl-0">], </span><span class="hl-5">trackPoints</span><span class="hl-0">[</span><span class="hl-8">0</span><span class="hl-0">][</span><span class="hl-8">1</span><span class="hl-0">], </span><span class="hl-1">&#39;#0a0&#39;</span><span class="hl-0">],</span><br/><br/><span class="hl-0"> </span><span class="hl-2">// Showing the track in red</span><br/><span class="hl-0"> </span><span class="hl-5">pathStrokeColor:</span><span class="hl-0"> </span><span class="hl-1">&#39;red&#39;</span><span class="hl-0">,</span><br/><span class="hl-0">});</span>
208
284
  </code></pre>
209
285
  <p>And voila!</p>
210
286
  <p><img src="images/screenshots/static-with-path.png" alt="static map with bike path"></p>
211
287
  <blockquote>
212
- <p>📣 <em><strong>Note:</strong></em> The GeoJSON for this track contains 9380 couples of coordinates, which is a lot! In order to send the track to MapTiler Cloud static maps API, the client simplifies the long paths while keeing a high degree of precision using a very fast <a href="https://en.wikipedia.org/wiki/Ramer%E2%80%93Douglas%E2%80%93Peucker_algorithm">Ramer-Douglas-Peucker algorithm</a>.</p>
288
+ <p>📣 <em><strong>Note:</strong></em> The GeoJSON for this track contains 9380 couples of coordinates, which is a lot! In order to send the track to MapTiler Cloud static maps API, the client simplifies the long paths while keeping a high degree of precision using a very fast <a href="https://en.wikipedia.org/wiki/Ramer%E2%80%93Douglas%E2%80%93Peucker_algorithm">Ramer-Douglas-Peucker algorithm</a>.</p>
213
289
  </blockquote>
214
290
  <p>Read more about bounded static maps on our official <a href="https://docs.maptiler.com/cloud/api/static-maps/#auto-fitted-image">API documentation</a>.</p>
215
291
 
@@ -220,6 +296,11 @@
220
296
  <p>In <a href="examples/test-node.js">this NodeJS example</a>, you can see that the package <a href="https://www.npmjs.com/package/node-fetch">Node Fetch</a> has been <code>npm install</code>ed and is passed to the config object of the <em>MapTiler Client</em>.</p>
221
297
  <pre><code class="language-js"><span class="hl-3">import</span><span class="hl-0"> {</span><br/><span class="hl-0"> </span><span class="hl-5">config</span><span class="hl-0">,</span><br/><span class="hl-0"> </span><span class="hl-2">// ...</span><br/><span class="hl-0">} </span><span class="hl-3">from</span><span class="hl-0"> </span><span class="hl-1">&#39;@maptiler/client&#39;</span><span class="hl-0">;</span><br/><br/><span class="hl-2">// For this example to work, you must bring your own node-compatible fetch,</span><br/><span class="hl-2">// unles you are using a version of Nodejs that already contains fetch (&gt;=18)</span><br/><span class="hl-3">import</span><span class="hl-0"> </span><span class="hl-5">fetch</span><span class="hl-0"> </span><span class="hl-3">from</span><span class="hl-0"> </span><span class="hl-1">&#39;node-fetch&#39;</span><span class="hl-0">;</span><br/><br/><span class="hl-5">config</span><span class="hl-0">.</span><span class="hl-5">fetch</span><span class="hl-0"> = </span><span class="hl-5">fetch</span><span class="hl-0">;</span><br/><br/><span class="hl-2">// ...</span>
222
298
  </code></pre>
299
+
300
+ <a href="#terms-and-usage-limitations" id="terms-and-usage-limitations" style="color: inherit; text-decoration: none;">
301
+ <h1>Terms and usage limitations</h1>
302
+ </a>
303
+ <p>The data fetched from MapTiler Cloud API, with or without this library, cannot be stored or redistributed in any ways. If you have any doubt about your specific usecase, please consult our <a href="https://www.maptiler.com/cloud/terms/#explicitly-prohibited-use">legal terms</a> or contact us.</p>
223
304
  </div></div>
224
305
  <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
225
306
  <div class="tsd-navigation settings">
@@ -237,7 +318,7 @@
237
318
  <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
238
319
  <div class="tsd-accordion-details">
239
320
  <ul>
240
- <li class="current selected"><a href="modules.html">Map<wbr/>Tiler <wbr/>Client -<wbr/> v1.0.3</a>
321
+ <li class="current selected"><a href="modules.html">Map<wbr/>Tiler <wbr/>Client -<wbr/> v1.1.1</a>
241
322
  <ul>
242
323
  <li class="tsd-kind-module"><a href="modules/config.html">config</a></li>
243
324
  <li class="tsd-kind-module"><a href="modules/language.html">language</a></li>
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>config | MapTiler Client - v1.0.3</title><meta name="description" content="Documentation for MapTiler Client - v1.0.3"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><link rel="stylesheet" href="../assets/custom.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
1
+ <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>config | MapTiler Client - v1.1.1</title><meta name="description" content="Documentation for MapTiler Client - v1.1.1"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><link rel="stylesheet" href="../assets/custom.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
2
2
  <div class="tsd-toolbar-contents container">
3
3
  <div class="table-cell" id="tsd-search" data-base="..">
4
4
  <div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
@@ -6,17 +6,17 @@
6
6
  <div id="tsd-toolbar-links"></div></div>
7
7
  <ul class="results">
8
8
  <li class="state loading">Preparing search index...</li>
9
- <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">MapTiler Client - v1.0.3</a></div>
9
+ <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">MapTiler Client - v1.1.1</a></div>
10
10
  <div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
11
11
  <div class="container container-main">
12
12
  <div class="col-8 col-content">
13
13
  <div class="tsd-page-title">
14
14
  <ul class="tsd-breadcrumb">
15
- <li><a href="../modules.html">MapTiler Client - v1.0.3</a></li>
15
+ <li><a href="../modules.html">MapTiler Client - v1.1.1</a></li>
16
16
  <li><a href="config.html">config</a></li></ul>
17
17
  <h1>Module config</h1></div><aside class="tsd-sources">
18
18
  <ul>
19
- <li>Defined in <a href="https://github.com/maptiler/maptiler-client-js/blob/05ded3a/src/config.ts#L1">config.ts:1</a></li></ul></aside>
19
+ <li>Defined in <a href="https://github.com/maptiler/maptiler-client-js/blob/37740e0/src/config.ts#L1">config.ts:1</a></li></ul></aside>
20
20
  <section class="tsd-panel-group">
21
21
  <section class="tsd-panel tsd-typography"></section></section>
22
22
  <section class="tsd-panel-group tsd-index-group">
@@ -50,7 +50,7 @@
50
50
  <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
51
51
  <div class="tsd-accordion-details">
52
52
  <ul>
53
- <li class="current"><a href="../modules.html">Map<wbr/>Tiler <wbr/>Client -<wbr/> v1.0.3</a>
53
+ <li class="current"><a href="../modules.html">Map<wbr/>Tiler <wbr/>Client -<wbr/> v1.1.1</a>
54
54
  <ul>
55
55
  <li class="current selected tsd-kind-module"><a href="config.html">config</a></li>
56
56
  <li class="tsd-kind-module"><a href="language.html">language</a></li>
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>language | MapTiler Client - v1.0.3</title><meta name="description" content="Documentation for MapTiler Client - v1.0.3"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><link rel="stylesheet" href="../assets/custom.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
1
+ <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>language | MapTiler Client - v1.1.1</title><meta name="description" content="Documentation for MapTiler Client - v1.1.1"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><link rel="stylesheet" href="../assets/custom.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
2
2
  <div class="tsd-toolbar-contents container">
3
3
  <div class="table-cell" id="tsd-search" data-base="..">
4
4
  <div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
@@ -6,17 +6,17 @@
6
6
  <div id="tsd-toolbar-links"></div></div>
7
7
  <ul class="results">
8
8
  <li class="state loading">Preparing search index...</li>
9
- <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">MapTiler Client - v1.0.3</a></div>
9
+ <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">MapTiler Client - v1.1.1</a></div>
10
10
  <div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
11
11
  <div class="container container-main">
12
12
  <div class="col-8 col-content">
13
13
  <div class="tsd-page-title">
14
14
  <ul class="tsd-breadcrumb">
15
- <li><a href="../modules.html">MapTiler Client - v1.0.3</a></li>
15
+ <li><a href="../modules.html">MapTiler Client - v1.1.1</a></li>
16
16
  <li><a href="language.html">language</a></li></ul>
17
17
  <h1>Module language</h1></div><aside class="tsd-sources">
18
18
  <ul>
19
- <li>Defined in <a href="https://github.com/maptiler/maptiler-client-js/blob/05ded3a/src/language.ts#L4">language.ts:4</a></li></ul></aside>
19
+ <li>Defined in <a href="https://github.com/maptiler/maptiler-client-js/blob/37740e0/src/language.ts#L4">language.ts:4</a></li></ul></aside>
20
20
  <section class="tsd-panel-group">
21
21
  <section class="tsd-panel tsd-typography"></section></section>
22
22
  <section class="tsd-panel-group tsd-index-group">
@@ -50,7 +50,7 @@
50
50
  <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
51
51
  <div class="tsd-accordion-details">
52
52
  <ul>
53
- <li class="current"><a href="../modules.html">Map<wbr/>Tiler <wbr/>Client -<wbr/> v1.0.3</a>
53
+ <li class="current"><a href="../modules.html">Map<wbr/>Tiler <wbr/>Client -<wbr/> v1.1.1</a>
54
54
  <ul>
55
55
  <li class="tsd-kind-module"><a href="config.html">config</a></li>
56
56
  <li class="current selected tsd-kind-module"><a href="language.html">language</a></li>
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>services/ServiceError | MapTiler Client - v1.0.3</title><meta name="description" content="Documentation for MapTiler Client - v1.0.3"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><link rel="stylesheet" href="../assets/custom.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
1
+ <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>services/ServiceError | MapTiler Client - v1.1.1</title><meta name="description" content="Documentation for MapTiler Client - v1.1.1"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><link rel="stylesheet" href="../assets/custom.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
2
2
  <div class="tsd-toolbar-contents container">
3
3
  <div class="table-cell" id="tsd-search" data-base="..">
4
4
  <div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
@@ -6,17 +6,17 @@
6
6
  <div id="tsd-toolbar-links"></div></div>
7
7
  <ul class="results">
8
8
  <li class="state loading">Preparing search index...</li>
9
- <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">MapTiler Client - v1.0.3</a></div>
9
+ <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">MapTiler Client - v1.1.1</a></div>
10
10
  <div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
11
11
  <div class="container container-main">
12
12
  <div class="col-8 col-content">
13
13
  <div class="tsd-page-title">
14
14
  <ul class="tsd-breadcrumb">
15
- <li><a href="../modules.html">MapTiler Client - v1.0.3</a></li>
15
+ <li><a href="../modules.html">MapTiler Client - v1.1.1</a></li>
16
16
  <li><a href="services_ServiceError.html">services/ServiceError</a></li></ul>
17
17
  <h1>Module services/ServiceError</h1></div><aside class="tsd-sources">
18
18
  <ul>
19
- <li>Defined in <a href="https://github.com/maptiler/maptiler-client-js/blob/05ded3a/src/services/ServiceError.ts#L4">services/ServiceError.ts:4</a></li></ul></aside>
19
+ <li>Defined in <a href="https://github.com/maptiler/maptiler-client-js/blob/37740e0/src/services/ServiceError.ts#L4">services/ServiceError.ts:4</a></li></ul></aside>
20
20
  <section class="tsd-panel-group">
21
21
  <section class="tsd-panel tsd-typography"></section></section>
22
22
  <section class="tsd-panel-group tsd-index-group">
@@ -42,7 +42,7 @@
42
42
  <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
43
43
  <div class="tsd-accordion-details">
44
44
  <ul>
45
- <li class="current"><a href="../modules.html">Map<wbr/>Tiler <wbr/>Client -<wbr/> v1.0.3</a>
45
+ <li class="current"><a href="../modules.html">Map<wbr/>Tiler <wbr/>Client -<wbr/> v1.1.1</a>
46
46
  <ul>
47
47
  <li class="tsd-kind-module"><a href="config.html">config</a></li>
48
48
  <li class="tsd-kind-module"><a href="language.html">language</a></li>
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>services/coordinates | MapTiler Client - v1.0.3</title><meta name="description" content="Documentation for MapTiler Client - v1.0.3"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><link rel="stylesheet" href="../assets/custom.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
1
+ <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>services/coordinates | MapTiler Client - v1.1.1</title><meta name="description" content="Documentation for MapTiler Client - v1.1.1"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><link rel="stylesheet" href="../assets/custom.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
2
2
  <div class="tsd-toolbar-contents container">
3
3
  <div class="table-cell" id="tsd-search" data-base="..">
4
4
  <div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
@@ -6,17 +6,17 @@
6
6
  <div id="tsd-toolbar-links"></div></div>
7
7
  <ul class="results">
8
8
  <li class="state loading">Preparing search index...</li>
9
- <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">MapTiler Client - v1.0.3</a></div>
9
+ <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">MapTiler Client - v1.1.1</a></div>
10
10
  <div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
11
11
  <div class="container container-main">
12
12
  <div class="col-8 col-content">
13
13
  <div class="tsd-page-title">
14
14
  <ul class="tsd-breadcrumb">
15
- <li><a href="../modules.html">MapTiler Client - v1.0.3</a></li>
15
+ <li><a href="../modules.html">MapTiler Client - v1.1.1</a></li>
16
16
  <li><a href="services_coordinates.html">services/coordinates</a></li></ul>
17
17
  <h1>Module services/coordinates</h1></div><aside class="tsd-sources">
18
18
  <ul>
19
- <li>Defined in <a href="https://github.com/maptiler/maptiler-client-js/blob/05ded3a/src/services/coordinates.ts#L1">services/coordinates.ts:1</a></li></ul></aside>
19
+ <li>Defined in <a href="https://github.com/maptiler/maptiler-client-js/blob/37740e0/src/services/coordinates.ts#L1">services/coordinates.ts:1</a></li></ul></aside>
20
20
  <section class="tsd-panel-group">
21
21
  <section class="tsd-panel tsd-typography"></section></section>
22
22
  <section class="tsd-panel-group tsd-index-group">
@@ -55,7 +55,7 @@
55
55
  <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
56
56
  <div class="tsd-accordion-details">
57
57
  <ul>
58
- <li class="current"><a href="../modules.html">Map<wbr/>Tiler <wbr/>Client -<wbr/> v1.0.3</a>
58
+ <li class="current"><a href="../modules.html">Map<wbr/>Tiler <wbr/>Client -<wbr/> v1.1.1</a>
59
59
  <ul>
60
60
  <li class="tsd-kind-module"><a href="config.html">config</a></li>
61
61
  <li class="tsd-kind-module"><a href="language.html">language</a></li>