@maptiler/client 1.0.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.
Files changed (107) hide show
  1. package/.eslintrc.cjs +6 -0
  2. package/LICENSE +29 -0
  3. package/dist/maptiler-client.cjs +692 -0
  4. package/dist/maptiler-client.cjs.map +1 -0
  5. package/dist/maptiler-client.d.ts +702 -0
  6. package/dist/maptiler-client.min.mjs +1 -0
  7. package/dist/maptiler-client.mjs +680 -0
  8. package/dist/maptiler-client.mjs.map +1 -0
  9. package/dist/maptiler-client.umd.js +698 -0
  10. package/dist/maptiler-client.umd.js.map +1 -0
  11. package/dist/maptiler-client.umd.min.js +1 -0
  12. package/docs/.nojekyll +1 -0
  13. package/docs/assets/highlight.css +85 -0
  14. package/docs/assets/main.js +54 -0
  15. package/docs/assets/search.js +1 -0
  16. package/docs/assets/style.css +1257 -0
  17. package/docs/classes/ClientConfig.html +122 -0
  18. package/docs/classes/ServiceError.html +93 -0
  19. package/docs/images/JS-logo.svg +4 -0
  20. package/docs/images/TS-logo.svg +6 -0
  21. package/docs/images/maptiler-client-logo.afdesign +0 -0
  22. package/docs/images/maptiler-client-logo.svg +75 -0
  23. package/docs/images/maptiler-logo.svg +23 -0
  24. package/docs/images/screenshots/static-bounded-europe-1024.png +0 -0
  25. package/docs/images/screenshots/static-bounded-europe-2048.png +0 -0
  26. package/docs/images/screenshots/static-bounded-portugal-1024x2048.png +0 -0
  27. package/docs/images/screenshots/static-bounded-portugal-2048x2048.png +0 -0
  28. package/docs/images/screenshots/static-with-path.png +0 -0
  29. package/docs/index.html +280 -0
  30. package/docs/modules.html +119 -0
  31. package/docs/types/AutomaticStaticMapOptions.html +80 -0
  32. package/docs/types/BoundedStaticMapOptions.html +80 -0
  33. package/docs/types/CenteredStaticMapOptions.html +80 -0
  34. package/docs/types/CoordinateExport.html +85 -0
  35. package/docs/types/CoordinateGrid.html +83 -0
  36. package/docs/types/CoordinateId.html +85 -0
  37. package/docs/types/CoordinateSearch.html +107 -0
  38. package/docs/types/CoordinateSearchResult.html +89 -0
  39. package/docs/types/CoordinateTransformResult.html +90 -0
  40. package/docs/types/CoordinateTransformation.html +103 -0
  41. package/docs/types/Coordinates.html +78 -0
  42. package/docs/types/CoordinatesSearchOptions.html +97 -0
  43. package/docs/types/CoordinatesTransformOptions.html +99 -0
  44. package/docs/types/FeatureHierarchy.html +89 -0
  45. package/docs/types/FetchFunction.html +93 -0
  46. package/docs/types/GeocodingFeature.html +78 -0
  47. package/docs/types/GeocodingOptions.html +97 -0
  48. package/docs/types/GeocodingSearchResult.html +95 -0
  49. package/docs/types/GeolocationInfoOptions.html +87 -0
  50. package/docs/types/GeolocationResult.html +150 -0
  51. package/docs/types/GetDataOptions.html +87 -0
  52. package/docs/types/LanguageGeocodingString.html +80 -0
  53. package/docs/types/ReverseGeocodingOptions.html +89 -0
  54. package/docs/types/StaticMapBaseOptions.html +176 -0
  55. package/docs/types/StaticMapMarker.html +80 -0
  56. package/docs/types/XYZ.html +87 -0
  57. package/docs/variables/LanguageGeocoding.html +193 -0
  58. package/docs/variables/config.html +80 -0
  59. package/docs/variables/coordinates-1.html +124 -0
  60. package/docs/variables/data.html +103 -0
  61. package/docs/variables/geocoding.html +239 -0
  62. package/docs/variables/geolocation.html +101 -0
  63. package/docs/variables/staticMaps.html +147 -0
  64. package/docsmd/.nojekyll +1 -0
  65. package/docsmd/README.md +756 -0
  66. package/docsmd/classes/ClientConfig.md +90 -0
  67. package/docsmd/classes/ServiceError.md +52 -0
  68. package/docsmd/images/JS-logo.svg +4 -0
  69. package/docsmd/images/TS-logo.svg +6 -0
  70. package/docsmd/images/maptiler-client-logo.afdesign +0 -0
  71. package/docsmd/images/maptiler-client-logo.svg +75 -0
  72. package/docsmd/images/maptiler-logo.svg +23 -0
  73. package/docsmd/images/screenshots/static-bounded-europe-1024.png +0 -0
  74. package/docsmd/images/screenshots/static-bounded-europe-2048.png +0 -0
  75. package/docsmd/images/screenshots/static-bounded-portugal-1024x2048.png +0 -0
  76. package/docsmd/images/screenshots/static-bounded-portugal-2048x2048.png +0 -0
  77. package/docsmd/images/screenshots/static-with-path.png +0 -0
  78. package/examples/test-browser-es.html +102 -0
  79. package/examples/test-browser-umd.html +89 -0
  80. package/examples/test-node.js +52 -0
  81. package/images/JS-logo.svg +4 -0
  82. package/images/TS-logo.svg +6 -0
  83. package/images/maptiler-client-logo.afdesign +0 -0
  84. package/images/maptiler-client-logo.svg +75 -0
  85. package/images/maptiler-logo.svg +23 -0
  86. package/images/screenshots/static-bounded-europe-1024.png +0 -0
  87. package/images/screenshots/static-bounded-europe-2048.png +0 -0
  88. package/images/screenshots/static-bounded-portugal-1024x2048.png +0 -0
  89. package/images/screenshots/static-bounded-portugal-2048x2048.png +0 -0
  90. package/images/screenshots/static-with-path.png +0 -0
  91. package/package.json +69 -0
  92. package/readme.md +287 -0
  93. package/rollup.config.js +142 -0
  94. package/src/callFetch.ts +18 -0
  95. package/src/config.ts +65 -0
  96. package/src/defaults.ts +11 -0
  97. package/src/index.ts +90 -0
  98. package/src/language.ts +87 -0
  99. package/src/services/ServiceError.ts +10 -0
  100. package/src/services/coordinates.ts +258 -0
  101. package/src/services/data.ts +63 -0
  102. package/src/services/geocoding.ts +239 -0
  103. package/src/services/geolocation.ts +139 -0
  104. package/src/services/simplify.ts +87 -0
  105. package/src/services/staticMaps.ts +462 -0
  106. package/tsconfig.json +10 -0
  107. package/typedoc.json +10 -0
@@ -0,0 +1,280 @@
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 JS</title><meta name="description" content="Documentation for MapTiler Client JS"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="assets/style.css"/><link rel="stylesheet" href="assets/highlight.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
+ <div class="tsd-toolbar-contents container">
3
+ <div class="table-cell" id="tsd-search" data-base=".">
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>
5
+ <div class="field">
6
+ <div id="tsd-toolbar-links"></div></div>
7
+ <ul class="results">
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 JS</a></div>
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
+ <div class="container container-main">
12
+ <div class="col-8 col-content">
13
+ <div class="tsd-page-title">
14
+ <h2>MapTiler Client JS</h2></div>
15
+ <div class="tsd-panel tsd-typography"><p align="center">
16
+ <img src="images/maptiler-client-logo.svg" width="400px">
17
+ </p>
18
+
19
+ <p align="center" style="color: #AAA">
20
+ The Javascript & TypeScript API client library to enjoy <a href="https://www.maptiler.com/cloud/">MapTiler Cloud</a>'s <br>services such as geocoding, geolocation and more!
21
+ </p>
22
+
23
+ <p align="center">
24
+ <img src="images/JS-logo.svg" width="20px">
25
+ <img src="images/TS-logo.svg" width="20px">
26
+ <img src="https://img.shields.io/npm/v/@maptiler/client"></img>
27
+ <img src="https://img.shields.io/twitter/follow/maptiler?style=social"></img>
28
+ </p>
29
+
30
+
31
+ <a href="#what-and-why" id="what-and-why" style="color: inherit; text-decoration: none;">
32
+ <h1>What and why?</h1>
33
+ </a>
34
+ <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>
35
+ <ul>
36
+ <li>Geocoding forward and reverse</li>
37
+ <li>Geolocation from visitor&#39;s IP address</li>
38
+ <li>Coordidinate systems search and tranform</li>
39
+ <li>User data fetching as GeoJSON</li>
40
+ <li>Static maps of all sorts</li>
41
+ </ul>
42
+ <p>The project is entirely written in TypeScript and all the function arguments are nicely documented and typed.</p>
43
+ <blockquote>
44
+ <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>
45
+ </blockquote>
46
+
47
+ <a href="#install" id="install" style="color: inherit; text-decoration: none;">
48
+ <h1>Install</h1>
49
+ </a>
50
+ <pre><code class="language-shell"><span class="hl-0">npm install --save @maptiler/client</span>
51
+ </code></pre>
52
+
53
+ <a href="#api-documentation" id="api-documentation" style="color: inherit; text-decoration: none;">
54
+ <h1>API documentation</h1>
55
+ </a>
56
+ <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>
57
+
58
+ <a href="#quick-start" id="quick-start" style="color: inherit; text-decoration: none;">
59
+ <h1>Quick start</h1>
60
+ </a>
61
+ <pre><code class="language-ts"><span class="hl-1">// Import the whole library</span><br/><span class="hl-2">import</span><span class="hl-0"> </span><span class="hl-3">*</span><span class="hl-0"> </span><span class="hl-2">as</span><span class="hl-0"> </span><span class="hl-4">maptilerClient</span><span class="hl-0"> </span><span class="hl-2">from</span><span class="hl-0"> </span><span class="hl-5">&#39;@maptiler/client&#39;</span><span class="hl-0">;</span><br/><br/><span class="hl-1">// Or import only the bits you need</span><br/><span class="hl-2">import</span><span class="hl-0"> {</span><br/><span class="hl-0"> </span><span class="hl-4">config</span><span class="hl-0">,</span><br/><span class="hl-0"> </span><span class="hl-4">geocoding</span><span class="hl-0">,</span><br/><span class="hl-0"> </span><span class="hl-4">geolocation</span><span class="hl-0">,</span><br/><span class="hl-0"> </span><span class="hl-4">coordinates</span><span class="hl-0">,</span><br/><span class="hl-0"> </span><span class="hl-4">data</span><span class="hl-0">,</span><br/><span class="hl-0"> </span><span class="hl-4">staticMaps</span><span class="hl-0">,</span><br/><span class="hl-0">} </span><span class="hl-2">from</span><span class="hl-0"> </span><span class="hl-5">&#39;@maptiler/client&#39;</span><span class="hl-0">;</span>
62
+ </code></pre>
63
+ <p>The <a href="examples/">examples</a> folder includes are featuring usages for <strong>NodeJS</strong>, <strong>browser with UMD</strong> and <strong>browser with ES module</strong>.</p>
64
+
65
+ <a href="#easy-access-to-maptiler-cloud-api" id="easy-access-to-maptiler-cloud-api" style="color: inherit; text-decoration: none;">
66
+ <h1>Easy access to MapTiler Cloud API</h1>
67
+ </a>
68
+ <p>Here is the list of service wrapper functions that are built-in:</p>
69
+
70
+ <a href="#🔍-geocoding" id="🔍-geocoding" style="color: inherit; text-decoration: none;">
71
+ <h2>🔍 Geocoding</h2>
72
+ </a>
73
+
74
+ <a href="#forward" id="forward" style="color: inherit; text-decoration: none;">
75
+ <h3>Forward</h3>
76
+ </a>
77
+ <p>You want to know the longitude and latitude of a specific place, use the forward geocoding:</p>
78
+ <pre><code class="language-ts"><span class="hl-1">// in an async function, or as a &#39;thenable&#39;:</span><br/><span class="hl-3">const</span><span class="hl-0"> </span><span class="hl-6">result</span><span class="hl-0"> = </span><span class="hl-2">await</span><span class="hl-0"> </span><span class="hl-4">maptilerClient</span><span class="hl-0">.</span><span class="hl-4">geocoding</span><span class="hl-0">.</span><span class="hl-7">forward</span><span class="hl-0">(</span><span class="hl-5">&#39;paris&#39;</span><span class="hl-0">);</span>
79
+ </code></pre>
80
+ <p>You can provide some options such as:</p>
81
+ <ul>
82
+ <li>the proximity, given a lon-lat position, to sort the results</li>
83
+ <li>one of more languages to get the results into</li>
84
+ <li>a bounding geo box, to restrict the search to a given window</li>
85
+ </ul>
86
+ <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>
87
+
88
+ <a href="#reverse" id="reverse" style="color: inherit; text-decoration: none;">
89
+ <h3>Reverse</h3>
90
+ </a>
91
+ <p>You wan to tknow the name of a place, given a longitude-latitude? Use the reverse geocoding:</p>
92
+ <pre><code class="language-ts"><span class="hl-1">// in an async function, or as a &#39;thenable&#39;:</span><br/><span class="hl-3">const</span><span class="hl-0"> </span><span class="hl-6">result</span><span class="hl-0"> = </span><span class="hl-2">await</span><span class="hl-0"> </span><span class="hl-4">maptilerClient</span><span class="hl-0">.</span><span class="hl-4">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>
93
+ </code></pre>
94
+ <p>The same option object as the forward geocoding can be provided.</p>
95
+ <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>
96
+
97
+ <a href="#language" id="language" style="color: inherit; text-decoration: none;">
98
+ <h3>Language</h3>
99
+ </a>
100
+ <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>
101
+ <pre><code class="language-ts"><span class="hl-3">const</span><span class="hl-0"> </span><span class="hl-6">result</span><span class="hl-0"> = </span><span class="hl-2">await</span><span class="hl-0"> </span><span class="hl-4">maptilerClient</span><span class="hl-0">.</span><span class="hl-4">geocoding</span><span class="hl-0">.</span><span class="hl-7">forward</span><span class="hl-0">(</span><span class="hl-5">&#39;paris&#39;</span><span class="hl-0">, {</span><span class="hl-4">language:</span><span class="hl-0"> [</span><span class="hl-4">maptilerClient</span><span class="hl-0">.</span><span class="hl-4">geocoding</span><span class="hl-0">.</span><span class="hl-4">languages</span><span class="hl-0">.</span><span class="hl-6">SPANISH</span><span class="hl-0">, </span><span class="hl-4">maptilerClient</span><span class="hl-0">.</span><span class="hl-4">geocoding</span><span class="hl-0">.</span><span class="hl-4">languages</span><span class="hl-0">.</span><span class="hl-6">KOREAN</span><span class="hl-0">]})</span>
102
+ </code></pre>
103
+ <p>The special language <code>AUTO</code> will detect the plateform/browser prefered language.</p>
104
+
105
+ <a href="#🕵️♂️-geolocation" id="🕵️♂️-geolocation" style="color: inherit; text-decoration: none;">
106
+ <h2>🕵️‍♂️ Geolocation</h2>
107
+ </a>
108
+ <p>The geolocation service provides an accurate location insight of a website visitor using its IP address.</p>
109
+ <p>There is only a single function:</p>
110
+ <pre><code class="language-ts"><span class="hl-1">// in an async function, or as a &#39;thenable&#39;:</span><br/><span class="hl-3">const</span><span class="hl-0"> </span><span class="hl-6">result</span><span class="hl-0"> = </span><span class="hl-2">await</span><span class="hl-0"> </span><span class="hl-4">maptilerClient</span><span class="hl-0">.</span><span class="hl-4">geolocation</span><span class="hl-0">.</span><span class="hl-7">info</span><span class="hl-0">();</span>
111
+ </code></pre>
112
+ <p>Read more about geolocation on our official <a href="https://docs.maptiler.com/cloud/api/geolocation/">API documentation</a>.</p>
113
+
114
+ <a href="#🌐-coordinates" id="🌐-coordinates" style="color: inherit; text-decoration: none;">
115
+ <h2>🌐 Coordinates</h2>
116
+ </a>
117
+ <p>If you are already familiar with <a href="https://epsg.io/">epsg.io</a> (created by MapTiler), then you may find convenient to access the details of more than 10 thousands of coordinate reference systems (CRS) programmatically, as well as transforming coordinates from one system to another!</p>
118
+
119
+ <a href="#search" id="search" style="color: inherit; text-decoration: none;">
120
+ <h3>Search</h3>
121
+ </a>
122
+ <p>The <code>search</code> lets you perform a query in a free form fashion. Here are some examples:</p>
123
+ <pre><code class="language-ts"><span class="hl-1">// in an async function, or as a &#39;thenable&#39;:</span><br/><span class="hl-3">const</span><span class="hl-0"> </span><span class="hl-6">resultA</span><span class="hl-0"> = </span><span class="hl-2">await</span><span class="hl-0"> </span><span class="hl-4">maptilerClient</span><span class="hl-0">.</span><span class="hl-4">coordinates</span><span class="hl-0">.</span><span class="hl-7">search</span><span class="hl-0">(</span><span class="hl-5">&#39;mercator&#39;</span><span class="hl-0">);</span><br/><span class="hl-3">const</span><span class="hl-0"> </span><span class="hl-6">resultB</span><span class="hl-0"> = </span><span class="hl-2">await</span><span class="hl-0"> </span><span class="hl-4">maptilerClient</span><span class="hl-0">.</span><span class="hl-4">coordinates</span><span class="hl-0">.</span><span class="hl-7">search</span><span class="hl-0">(</span><span class="hl-5">&#39;plate carree&#39;</span><span class="hl-0">);</span><br/><span class="hl-3">const</span><span class="hl-0"> </span><span class="hl-6">resultC</span><span class="hl-0"> = </span><span class="hl-2">await</span><span class="hl-0"> </span><span class="hl-4">maptilerClient</span><span class="hl-0">.</span><span class="hl-4">coordinates</span><span class="hl-0">.</span><span class="hl-7">search</span><span class="hl-0">(</span><span class="hl-5">&#39;france&#39;</span><span class="hl-0">);</span><br/><span class="hl-3">const</span><span class="hl-0"> </span><span class="hl-6">resultD</span><span class="hl-0"> = </span><span class="hl-2">await</span><span class="hl-0"> </span><span class="hl-4">maptilerClient</span><span class="hl-0">.</span><span class="hl-4">coordinates</span><span class="hl-0">.</span><span class="hl-7">search</span><span class="hl-0">(</span><span class="hl-5">&#39;code:4326&#39;</span><span class="hl-0">, {</span><span class="hl-4">transformations:</span><span class="hl-0"> </span><span class="hl-3">true</span><span class="hl-0">}));</span>
124
+ </code></pre>
125
+ <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>
126
+ <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>
127
+
128
+ <a href="#transform" id="transform" style="color: inherit; text-decoration: none;">
129
+ <h3>Transform</h3>
130
+ </a>
131
+ <p>Transforming a couple of coordinates from one system to another can be challenging, for example, most countries have their own official system, yet web mapping tools are more often than not exclusive to <a href="https://epsg.io/4326">WGS84</a>.</p>
132
+ <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>
133
+ <pre><code class="language-ts"><span class="hl-1">// in an async function, or as a &#39;thenable&#39;:</span><br/><br/><span class="hl-1">// Providing one coordinate to transform, with a target CRS being EPSG:9793 (RGF93 v2 / Lambert-93, France official CRS)</span><br/><span class="hl-3">const</span><span class="hl-0"> </span><span class="hl-6">resultA</span><span class="hl-0"> = </span><span class="hl-2">await</span><span class="hl-0"> </span><span class="hl-4">maptilerClient</span><span class="hl-0">.</span><span class="hl-4">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-4">targetCrs:</span><span class="hl-0"> </span><span class="hl-8">9793</span><span class="hl-0">})</span><br/><br/><span class="hl-1">// Using the same logic, we can pass up to 50 coordinates to be transformed</span><br/><span class="hl-3">const</span><span class="hl-0"> </span><span class="hl-6">resultB</span><span class="hl-0"> = </span><span class="hl-2">await</span><span class="hl-0"> </span><span class="hl-4">maptilerClient</span><span class="hl-0">.</span><span class="hl-4">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-4">targetCrs:</span><span class="hl-0"> </span><span class="hl-8">9793</span><span class="hl-0">})</span>
134
+ </code></pre>
135
+ <p>Read more about transforming coordinates on our official <a href="https://docs.maptiler.com/cloud/api/coordinates/#transform-coordinates">API documentation</a>.</p>
136
+
137
+ <a href="#💽-data" id="💽-data" style="color: inherit; text-decoration: none;">
138
+ <h2>💽 Data</h2>
139
+ </a>
140
+ <p>MapTiler Cloud give its users the possibility to <a href="https://cloud.maptiler.com/data/">upload and create data</a>, manually with a user interface or by uploading a GPX, GeoJSON, KML or shp file. A unique ID is associated to each dataset so that we can later on access it programmatically to retrieve a GeoJSON equivalent of it:</p>
141
+ <pre><code class="language-ts"><span class="hl-1">// in an async function, or as a &#39;thenable&#39;:</span><br/><span class="hl-3">const</span><span class="hl-0"> </span><span class="hl-6">result</span><span class="hl-0"> = </span><span class="hl-2">await</span><span class="hl-0"> </span><span class="hl-4">maptilerClient</span><span class="hl-0">.</span><span class="hl-4">data</span><span class="hl-0">.</span><span class="hl-7">get</span><span class="hl-0">(</span><span class="hl-5">&#39;my-dataset-unique-id&#39;</span><span class="hl-0">)</span>
142
+ </code></pre>
143
+ <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>
144
+
145
+ <a href="#🗺️-static-maps" id="🗺️-static-maps" style="color: inherit; text-decoration: none;">
146
+ <h2>🗺️ Static maps</h2>
147
+ </a>
148
+ <p>Maptiler Cloud provides many possibilities for creating static maps as PNG, JPEG or WebP images. They all offer the possibilities to:</p>
149
+ <ul>
150
+ <li>Choose from one of the MapTiler style or your own</li>
151
+ <li>Add markers with a custom icon (or default icon with custom color)</li>
152
+ <li>Add path or polygon, with a parametric line width and color and a parametric filling color</li>
153
+ </ul>
154
+ <p>Three modes are available: <code>centered</code>, <code>bounded</code> and <code>automatic</code>.</p>
155
+ <blockquote>
156
+ <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>
157
+ </blockquote>
158
+
159
+ <a href="#centered-static-maps" id="centered-static-maps" style="color: inherit; text-decoration: none;">
160
+ <h3>Centered static maps</h3>
161
+ </a>
162
+ <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>
163
+ <pre><code class="language-ts"><span class="hl-3">const</span><span class="hl-0"> </span><span class="hl-6">imageLink</span><span class="hl-0"> = </span><span class="hl-4">maptiler</span><span class="hl-0">.</span><span class="hl-4">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-1">// 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-1">// 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-1">// Options</span><br/><span class="hl-0"> {</span><br/><span class="hl-0"> </span><span class="hl-1">// Request a hiDPI/Retina image</span><br/><span class="hl-0"> </span><span class="hl-4">hiDPI:</span><span class="hl-0"> </span><span class="hl-3">true</span><span class="hl-0">,</span><br/><br/><span class="hl-0"> </span><span class="hl-1">// Output image size</span><br/><span class="hl-0"> </span><span class="hl-4">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-4">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-1">// Map style</span><br/><span class="hl-0"> </span><span class="hl-4">style:</span><span class="hl-0"> </span><span class="hl-5">&#39;streets-v2&#39;</span><span class="hl-0">,</span><br/><span class="hl-0"> });</span>
164
+ </code></pre>
165
+ <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>
166
+
167
+ <a href="#bounded-static-maps" id="bounded-static-maps" style="color: inherit; text-decoration: none;">
168
+ <h3>Bounded static maps</h3>
169
+ </a>
170
+ <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>
171
+ <pre><code class="language-ts"><span class="hl-3">const</span><span class="hl-0"> </span><span class="hl-6">imageLink</span><span class="hl-0"> = </span><span class="hl-4">maptiler</span><span class="hl-0">.</span><span class="hl-4">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-1">// 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-1">// 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-1">// 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-1">// 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-1">// north bound (max y)</span><br/><span class="hl-0"> ],</span><br/><br/><span class="hl-0"> </span><span class="hl-1">// Options</span><br/><span class="hl-0"> {</span><br/><span class="hl-0"> </span><span class="hl-4">hiDPI:</span><span class="hl-0"> </span><span class="hl-3">true</span><span class="hl-0">,</span><br/><span class="hl-0"> </span><span class="hl-4">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-4">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-4">style:</span><span class="hl-0"> </span><span class="hl-5">&#39;streets-v2&#39;</span><span class="hl-0">,</span><br/><br/><span class="hl-0"> </span><span class="hl-1">// Extra space that will add around the bounding box, in percentage</span><br/><span class="hl-0"> </span><span class="hl-1">// (0.1 = 10% is actually the dafault)</span><br/><span class="hl-0"> </span><span class="hl-4">padding:</span><span class="hl-0"> </span><span class="hl-8">0.1</span><br/><span class="hl-0"> });</span>
172
+ </code></pre>
173
+ <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>
174
+ <table>
175
+ <thead>
176
+ <tr>
177
+ <th align="center"><code>2048 x 2048</code></th>
178
+ <th align="center"><code>1024 x 1024</code></th>
179
+ </tr>
180
+ </thead>
181
+ <tbody><tr>
182
+ <td align="center"><img src="images/screenshots/static-bounded-europe-2048.png" alt=""></td>
183
+ <td align="center"><img src="images/screenshots/static-bounded-europe-1024.png" alt=""></td>
184
+ </tr>
185
+ </tbody></table>
186
+ <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>
187
+ <table>
188
+ <thead>
189
+ <tr>
190
+ <th align="center"><code>2048 x 2048</code></th>
191
+ <th align="center"><code>1024 x 2048</code></th>
192
+ </tr>
193
+ </thead>
194
+ <tbody><tr>
195
+ <td align="center"><img src="images/screenshots/static-bounded-portugal-2048x2048.png" alt=""></td>
196
+ <td align="center"><img src="images/screenshots/static-bounded-portugal-1024x2048.png" alt=""></td>
197
+ </tr>
198
+ </tbody></table>
199
+ <p>Read more about bounded static maps on our official <a href="https://docs.maptiler.com/cloud/api/static-maps/#bounds-based-image">API documentation</a>.</p>
200
+
201
+ <a href="#automatic-static-maps" id="automatic-static-maps" style="color: inherit; text-decoration: none;">
202
+ <h3>Automatic static maps</h3>
203
+ </a>
204
+ <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>
205
+ <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>
206
+ <pre><code class="language-ts"><span class="hl-1">// Fetching the GeoJSON</span><br/><span class="hl-3">const</span><span class="hl-0"> </span><span class="hl-6">bikeTrack</span><span class="hl-0"> = </span><span class="hl-2">await</span><span class="hl-0"> </span><span class="hl-4">maptilerClient</span><span class="hl-0">.</span><span class="hl-4">data</span><span class="hl-0">.</span><span class="hl-7">get</span><span class="hl-0">(</span><span class="hl-5">&#39;the-id-of-a-bike-track-in-montreal&#39;</span><span class="hl-0">);</span><br/><br/><span class="hl-1">// Extracting the track points with the shape [[lng, lat], [lng, lat], ...]</span><br/><span class="hl-3">const</span><span class="hl-0"> </span><span class="hl-6">trackPoints</span><span class="hl-0"> = </span><span class="hl-4">bikeTrack</span><span class="hl-0">.</span><span class="hl-4">features</span><span class="hl-0">[</span><span class="hl-8">0</span><span class="hl-0">].</span><span class="hl-4">geometry</span><span class="hl-0">.</span><span class="hl-4">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-4">p</span><span class="hl-0"> </span><span class="hl-3">=&gt;</span><span class="hl-0"> </span><span class="hl-4">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-3">const</span><span class="hl-0"> </span><span class="hl-6">imageLink</span><span class="hl-0"> = </span><span class="hl-4">maptiler</span><span class="hl-0">.</span><span class="hl-4">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-1">// hiDPI/Retina precision</span><br/><span class="hl-0"> </span><span class="hl-4">hiDPI:</span><span class="hl-0"> </span><span class="hl-3">true</span><span class="hl-0">,</span><br/><br/><span class="hl-0"> </span><span class="hl-1">// A farily large output image</span><br/><span class="hl-0"> </span><span class="hl-4">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-4">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-1">// A grey style on which the track will pop!</span><br/><span class="hl-0"> </span><span class="hl-4">style:</span><span class="hl-0"> </span><span class="hl-5">&#39;streets-v2-light&#39;</span><span class="hl-0">,</span><br/><br/><span class="hl-0"> </span><span class="hl-1">// Draw a path with the trackpoints</span><br/><span class="hl-0"> </span><span class="hl-4">path:</span><span class="hl-0"> </span><span class="hl-4">trackPoints</span><span class="hl-0">,</span><br/><br/><span class="hl-0"> </span><span class="hl-1">// 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-4">marker:</span><span class="hl-0"> [</span><span class="hl-4">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-4">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-5">&#39;#0a0&#39;</span><span class="hl-0">],</span><br/><br/><span class="hl-0"> </span><span class="hl-1">// Showing the track in red</span><br/><span class="hl-0"> </span><span class="hl-4">pathStrokeColor:</span><span class="hl-0"> </span><span class="hl-5">&#39;red&#39;</span><span class="hl-0">,</span><br/><span class="hl-0">});</span>
207
+ </code></pre>
208
+ <p>And voila!</p>
209
+ <p><img src="images/screenshots/static-with-path.png" alt="static map with bike path"></p>
210
+ <blockquote>
211
+ <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>
212
+ </blockquote>
213
+ <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>
214
+
215
+ <a href="#from-nodejs" id="from-nodejs" style="color: inherit; text-decoration: none;">
216
+ <h1>From NodeJS</h1>
217
+ </a>
218
+ <p>NodeJS includes a stable <code>fetch()</code> function only from its version <em>18</em>, and this client does not contain a polyfill. If the <code>fetch()</code> function exists (browser or Node &gt;= 18) then it is going to be resolved automatically, Yet, a custom <code>fetch()</code> function can be provided to the <code>config</code> object for Node &lt; 18.</p>
219
+ <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>
220
+ <pre><code class="language-js"><span class="hl-2">import</span><span class="hl-0"> {</span><br/><span class="hl-0"> </span><span class="hl-4">config</span><span class="hl-0">,</span><br/><span class="hl-0"> </span><span class="hl-1">// ...</span><br/><span class="hl-0">} </span><span class="hl-2">from</span><span class="hl-0"> </span><span class="hl-5">&#39;@maptiler/client&#39;</span><span class="hl-0">;</span><br/><br/><span class="hl-1">// For this example to work, you must bring your own node-compatible fetch,</span><br/><span class="hl-1">// unles you are using a version of Nodejs that already contains fetch (&gt;=18)</span><br/><span class="hl-2">import</span><span class="hl-0"> </span><span class="hl-4">fetch</span><span class="hl-0"> </span><span class="hl-2">from</span><span class="hl-0"> </span><span class="hl-5">&#39;node-fetch&#39;</span><span class="hl-0">;</span><br/><br/><span class="hl-4">config</span><span class="hl-0">.</span><span class="hl-4">fetch</span><span class="hl-0"> = </span><span class="hl-4">fetch</span><span class="hl-0">;</span><br/><br/><span class="hl-1">// ...</span>
221
+ </code></pre>
222
+ </div></div>
223
+ <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
224
+ <div class="tsd-navigation settings">
225
+ <details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
226
+ <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> Settings</h3></summary>
227
+ <div class="tsd-accordion-details">
228
+ <div class="tsd-filter-visibility">
229
+ <h4 class="uppercase">Member Visibility</h4><form>
230
+ <ul id="tsd-filter-options">
231
+ <li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></form></div>
232
+ <div class="tsd-theme-toggle">
233
+ <h4 class="uppercase">Theme</h4><select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div>
234
+ <nav class="tsd-navigation primary">
235
+ <details class="tsd-index-accordion" open><summary class="tsd-accordion-summary">
236
+ <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>
237
+ <div class="tsd-accordion-details">
238
+ <ul>
239
+ <li class="current selected"><a href="modules.html">Map<wbr/>Tiler <wbr/>Client JS</a>
240
+ <ul></ul></li></ul></div></details></nav>
241
+ <nav class="tsd-navigation secondary menu-sticky">
242
+ <ul>
243
+ <li class="tsd-kind-class"><a href="classes/ClientConfig.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-128-path"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)" id="icon-128-text"></path></svg>Client<wbr/>Config</a></li>
244
+ <li class="tsd-kind-class"><a href="classes/ServiceError.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-128-path"></use><use href="#icon-128-text"></use></svg>Service<wbr/>Error</a></li>
245
+ <li class="tsd-kind-type-alias"><a href="types/AutomaticStaticMapOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-4194304-path"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)" id="icon-4194304-text"></path></svg>Automatic<wbr/>Static<wbr/>Map<wbr/>Options</a></li>
246
+ <li class="tsd-kind-type-alias"><a href="types/BoundedStaticMapOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Bounded<wbr/>Static<wbr/>Map<wbr/>Options</a></li>
247
+ <li class="tsd-kind-type-alias"><a href="types/CenteredStaticMapOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Centered<wbr/>Static<wbr/>Map<wbr/>Options</a></li>
248
+ <li class="tsd-kind-type-alias"><a href="types/CoordinateExport.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Coordinate<wbr/>Export</a></li>
249
+ <li class="tsd-kind-type-alias"><a href="types/CoordinateGrid.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Coordinate<wbr/>Grid</a></li>
250
+ <li class="tsd-kind-type-alias"><a href="types/CoordinateId.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Coordinate<wbr/>Id</a></li>
251
+ <li class="tsd-kind-type-alias"><a href="types/CoordinateSearch.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Coordinate<wbr/>Search</a></li>
252
+ <li class="tsd-kind-type-alias"><a href="types/CoordinateSearchResult.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Coordinate<wbr/>Search<wbr/>Result</a></li>
253
+ <li class="tsd-kind-type-alias"><a href="types/CoordinateTransformResult.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Coordinate<wbr/>Transform<wbr/>Result</a></li>
254
+ <li class="tsd-kind-type-alias"><a href="types/CoordinateTransformation.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Coordinate<wbr/>Transformation</a></li>
255
+ <li class="tsd-kind-type-alias"><a href="types/Coordinates.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Coordinates</a></li>
256
+ <li class="tsd-kind-type-alias"><a href="types/CoordinatesSearchOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Coordinates<wbr/>Search<wbr/>Options</a></li>
257
+ <li class="tsd-kind-type-alias"><a href="types/CoordinatesTransformOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Coordinates<wbr/>Transform<wbr/>Options</a></li>
258
+ <li class="tsd-kind-type-alias"><a href="types/FeatureHierarchy.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Feature<wbr/>Hierarchy</a></li>
259
+ <li class="tsd-kind-type-alias"><a href="types/FetchFunction.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Fetch<wbr/>Function</a></li>
260
+ <li class="tsd-kind-type-alias"><a href="types/GeocodingFeature.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Geocoding<wbr/>Feature</a></li>
261
+ <li class="tsd-kind-type-alias"><a href="types/GeocodingOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Geocoding<wbr/>Options</a></li>
262
+ <li class="tsd-kind-type-alias"><a href="types/GeocodingSearchResult.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Geocoding<wbr/>Search<wbr/>Result</a></li>
263
+ <li class="tsd-kind-type-alias"><a href="types/GeolocationInfoOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Geolocation<wbr/>Info<wbr/>Options</a></li>
264
+ <li class="tsd-kind-type-alias"><a href="types/GeolocationResult.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Geolocation<wbr/>Result</a></li>
265
+ <li class="tsd-kind-type-alias"><a href="types/GetDataOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Get<wbr/>Data<wbr/>Options</a></li>
266
+ <li class="tsd-kind-type-alias"><a href="types/LanguageGeocodingString.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Language<wbr/>Geocoding<wbr/>String</a></li>
267
+ <li class="tsd-kind-type-alias"><a href="types/ReverseGeocodingOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Reverse<wbr/>Geocoding<wbr/>Options</a></li>
268
+ <li class="tsd-kind-type-alias"><a href="types/StaticMapBaseOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Static<wbr/>Map<wbr/>Base<wbr/>Options</a></li>
269
+ <li class="tsd-kind-type-alias"><a href="types/StaticMapMarker.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Static<wbr/>Map<wbr/>Marker</a></li>
270
+ <li class="tsd-kind-type-alias"><a href="types/XYZ.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>XYZ</a></li>
271
+ <li class="tsd-kind-variable"><a href="variables/LanguageGeocoding.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-32-path"></rect><path d="M11.106 16L8.85 7.24H9.966L11.454 13.192C11.558 13.608 11.646 13.996 11.718 14.356C11.79 14.708 11.842 14.976 11.874 15.16C11.906 14.976 11.954 14.708 12.018 14.356C12.09 13.996 12.178 13.608 12.282 13.192L13.758 7.24H14.85L12.582 16H11.106Z" fill="var(--color-text)" id="icon-32-text"></path></svg>Language<wbr/>Geocoding</a></li>
272
+ <li class="tsd-kind-variable"><a href="variables/config.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg>config</a></li>
273
+ <li class="tsd-kind-variable"><a href="variables/coordinates-1.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg>coordinates</a></li>
274
+ <li class="tsd-kind-variable"><a href="variables/data.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg>data</a></li>
275
+ <li class="tsd-kind-variable"><a href="variables/geocoding.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg>geocoding</a></li>
276
+ <li class="tsd-kind-variable"><a href="variables/geolocation.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg>geolocation</a></li>
277
+ <li class="tsd-kind-variable"><a href="variables/staticMaps.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg>static<wbr/>Maps</a></li></ul></nav></div></div>
278
+ <div class="container tsd-generator">
279
+ <p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div>
280
+ <div class="overlay"></div><script src="assets/main.js"></script></body></html>
@@ -0,0 +1,119 @@
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 JS</title><meta name="description" content="Documentation for MapTiler Client JS"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="assets/style.css"/><link rel="stylesheet" href="assets/highlight.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
+ <div class="tsd-toolbar-contents container">
3
+ <div class="table-cell" id="tsd-search" data-base=".">
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>
5
+ <div class="field">
6
+ <div id="tsd-toolbar-links"></div></div>
7
+ <ul class="results">
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 JS</a></div>
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
+ <div class="container container-main">
12
+ <div class="col-8 col-content">
13
+ <div class="tsd-page-title">
14
+ <h2>MapTiler Client JS</h2></div>
15
+ <section class="tsd-panel-group tsd-index-group">
16
+ <section class="tsd-panel tsd-index-panel">
17
+ <h3 class="tsd-index-heading uppercase">Index</h3>
18
+ <section class="tsd-index-section">
19
+ <h3 class="tsd-index-heading">Classes</h3>
20
+ <div class="tsd-index-list"><a href="classes/ClientConfig.html" class="tsd-index-link tsd-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-128-path"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)" id="icon-128-text"></path></svg><span>Client<wbr/>Config</span></a>
21
+ <a href="classes/ServiceError.html" class="tsd-index-link tsd-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-128-path"></use><use href="#icon-128-text"></use></svg><span>Service<wbr/>Error</span></a>
22
+ </div></section>
23
+ <section class="tsd-index-section">
24
+ <h3 class="tsd-index-heading">Type Aliases</h3>
25
+ <div class="tsd-index-list"><a href="types/AutomaticStaticMapOptions.html" class="tsd-index-link tsd-kind-type-alias"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-4194304-path"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)" id="icon-4194304-text"></path></svg><span>Automatic<wbr/>Static<wbr/>Map<wbr/>Options</span></a>
26
+ <a href="types/BoundedStaticMapOptions.html" class="tsd-index-link tsd-kind-type-alias"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Bounded<wbr/>Static<wbr/>Map<wbr/>Options</span></a>
27
+ <a href="types/CenteredStaticMapOptions.html" class="tsd-index-link tsd-kind-type-alias"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Centered<wbr/>Static<wbr/>Map<wbr/>Options</span></a>
28
+ <a href="types/CoordinateExport.html" class="tsd-index-link tsd-kind-type-alias"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Coordinate<wbr/>Export</span></a>
29
+ <a href="types/CoordinateGrid.html" class="tsd-index-link tsd-kind-type-alias"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Coordinate<wbr/>Grid</span></a>
30
+ <a href="types/CoordinateId.html" class="tsd-index-link tsd-kind-type-alias"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Coordinate<wbr/>Id</span></a>
31
+ <a href="types/CoordinateSearch.html" class="tsd-index-link tsd-kind-type-alias"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Coordinate<wbr/>Search</span></a>
32
+ <a href="types/CoordinateSearchResult.html" class="tsd-index-link tsd-kind-type-alias"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Coordinate<wbr/>Search<wbr/>Result</span></a>
33
+ <a href="types/CoordinateTransformResult.html" class="tsd-index-link tsd-kind-type-alias"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Coordinate<wbr/>Transform<wbr/>Result</span></a>
34
+ <a href="types/CoordinateTransformation.html" class="tsd-index-link tsd-kind-type-alias"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Coordinate<wbr/>Transformation</span></a>
35
+ <a href="types/Coordinates.html" class="tsd-index-link tsd-kind-type-alias"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Coordinates</span></a>
36
+ <a href="types/CoordinatesSearchOptions.html" class="tsd-index-link tsd-kind-type-alias"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Coordinates<wbr/>Search<wbr/>Options</span></a>
37
+ <a href="types/CoordinatesTransformOptions.html" class="tsd-index-link tsd-kind-type-alias"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Coordinates<wbr/>Transform<wbr/>Options</span></a>
38
+ <a href="types/FeatureHierarchy.html" class="tsd-index-link tsd-kind-type-alias"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Feature<wbr/>Hierarchy</span></a>
39
+ <a href="types/FetchFunction.html" class="tsd-index-link tsd-kind-type-alias"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Fetch<wbr/>Function</span></a>
40
+ <a href="types/GeocodingFeature.html" class="tsd-index-link tsd-kind-type-alias"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Geocoding<wbr/>Feature</span></a>
41
+ <a href="types/GeocodingOptions.html" class="tsd-index-link tsd-kind-type-alias"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Geocoding<wbr/>Options</span></a>
42
+ <a href="types/GeocodingSearchResult.html" class="tsd-index-link tsd-kind-type-alias"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Geocoding<wbr/>Search<wbr/>Result</span></a>
43
+ <a href="types/GeolocationInfoOptions.html" class="tsd-index-link tsd-kind-type-alias"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Geolocation<wbr/>Info<wbr/>Options</span></a>
44
+ <a href="types/GeolocationResult.html" class="tsd-index-link tsd-kind-type-alias"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Geolocation<wbr/>Result</span></a>
45
+ <a href="types/GetDataOptions.html" class="tsd-index-link tsd-kind-type-alias"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Get<wbr/>Data<wbr/>Options</span></a>
46
+ <a href="types/LanguageGeocodingString.html" class="tsd-index-link tsd-kind-type-alias"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Language<wbr/>Geocoding<wbr/>String</span></a>
47
+ <a href="types/ReverseGeocodingOptions.html" class="tsd-index-link tsd-kind-type-alias"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Reverse<wbr/>Geocoding<wbr/>Options</span></a>
48
+ <a href="types/StaticMapBaseOptions.html" class="tsd-index-link tsd-kind-type-alias"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Static<wbr/>Map<wbr/>Base<wbr/>Options</span></a>
49
+ <a href="types/StaticMapMarker.html" class="tsd-index-link tsd-kind-type-alias"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>Static<wbr/>Map<wbr/>Marker</span></a>
50
+ <a href="types/XYZ.html" class="tsd-index-link tsd-kind-type-alias"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg><span>XYZ</span></a>
51
+ </div></section>
52
+ <section class="tsd-index-section">
53
+ <h3 class="tsd-index-heading">Variables</h3>
54
+ <div class="tsd-index-list"><a href="variables/LanguageGeocoding.html" class="tsd-index-link tsd-kind-variable"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-32-path"></rect><path d="M11.106 16L8.85 7.24H9.966L11.454 13.192C11.558 13.608 11.646 13.996 11.718 14.356C11.79 14.708 11.842 14.976 11.874 15.16C11.906 14.976 11.954 14.708 12.018 14.356C12.09 13.996 12.178 13.608 12.282 13.192L13.758 7.24H14.85L12.582 16H11.106Z" fill="var(--color-text)" id="icon-32-text"></path></svg><span>Language<wbr/>Geocoding</span></a>
55
+ <a href="variables/config.html" class="tsd-index-link tsd-kind-variable"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg><span>config</span></a>
56
+ <a href="variables/coordinates-1.html" class="tsd-index-link tsd-kind-variable"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg><span>coordinates</span></a>
57
+ <a href="variables/data.html" class="tsd-index-link tsd-kind-variable"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg><span>data</span></a>
58
+ <a href="variables/geocoding.html" class="tsd-index-link tsd-kind-variable"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg><span>geocoding</span></a>
59
+ <a href="variables/geolocation.html" class="tsd-index-link tsd-kind-variable"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg><span>geolocation</span></a>
60
+ <a href="variables/staticMaps.html" class="tsd-index-link tsd-kind-variable"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg><span>static<wbr/>Maps</span></a>
61
+ </div></section></section></section></div>
62
+ <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
63
+ <div class="tsd-navigation settings">
64
+ <details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
65
+ <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> Settings</h3></summary>
66
+ <div class="tsd-accordion-details">
67
+ <div class="tsd-filter-visibility">
68
+ <h4 class="uppercase">Member Visibility</h4><form>
69
+ <ul id="tsd-filter-options">
70
+ <li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></form></div>
71
+ <div class="tsd-theme-toggle">
72
+ <h4 class="uppercase">Theme</h4><select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div>
73
+ <nav class="tsd-navigation primary">
74
+ <details class="tsd-index-accordion" open><summary class="tsd-accordion-summary">
75
+ <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>
76
+ <div class="tsd-accordion-details">
77
+ <ul>
78
+ <li class="current selected"><a href="modules.html">Map<wbr/>Tiler <wbr/>Client JS</a>
79
+ <ul></ul></li></ul></div></details></nav>
80
+ <nav class="tsd-navigation secondary menu-sticky">
81
+ <ul>
82
+ <li class="tsd-kind-class"><a href="classes/ClientConfig.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-128-path"></use><use href="#icon-128-text"></use></svg>Client<wbr/>Config</a></li>
83
+ <li class="tsd-kind-class"><a href="classes/ServiceError.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-128-path"></use><use href="#icon-128-text"></use></svg>Service<wbr/>Error</a></li>
84
+ <li class="tsd-kind-type-alias"><a href="types/AutomaticStaticMapOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Automatic<wbr/>Static<wbr/>Map<wbr/>Options</a></li>
85
+ <li class="tsd-kind-type-alias"><a href="types/BoundedStaticMapOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Bounded<wbr/>Static<wbr/>Map<wbr/>Options</a></li>
86
+ <li class="tsd-kind-type-alias"><a href="types/CenteredStaticMapOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Centered<wbr/>Static<wbr/>Map<wbr/>Options</a></li>
87
+ <li class="tsd-kind-type-alias"><a href="types/CoordinateExport.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Coordinate<wbr/>Export</a></li>
88
+ <li class="tsd-kind-type-alias"><a href="types/CoordinateGrid.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Coordinate<wbr/>Grid</a></li>
89
+ <li class="tsd-kind-type-alias"><a href="types/CoordinateId.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Coordinate<wbr/>Id</a></li>
90
+ <li class="tsd-kind-type-alias"><a href="types/CoordinateSearch.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Coordinate<wbr/>Search</a></li>
91
+ <li class="tsd-kind-type-alias"><a href="types/CoordinateSearchResult.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Coordinate<wbr/>Search<wbr/>Result</a></li>
92
+ <li class="tsd-kind-type-alias"><a href="types/CoordinateTransformResult.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Coordinate<wbr/>Transform<wbr/>Result</a></li>
93
+ <li class="tsd-kind-type-alias"><a href="types/CoordinateTransformation.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Coordinate<wbr/>Transformation</a></li>
94
+ <li class="tsd-kind-type-alias"><a href="types/Coordinates.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Coordinates</a></li>
95
+ <li class="tsd-kind-type-alias"><a href="types/CoordinatesSearchOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Coordinates<wbr/>Search<wbr/>Options</a></li>
96
+ <li class="tsd-kind-type-alias"><a href="types/CoordinatesTransformOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Coordinates<wbr/>Transform<wbr/>Options</a></li>
97
+ <li class="tsd-kind-type-alias"><a href="types/FeatureHierarchy.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Feature<wbr/>Hierarchy</a></li>
98
+ <li class="tsd-kind-type-alias"><a href="types/FetchFunction.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Fetch<wbr/>Function</a></li>
99
+ <li class="tsd-kind-type-alias"><a href="types/GeocodingFeature.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Geocoding<wbr/>Feature</a></li>
100
+ <li class="tsd-kind-type-alias"><a href="types/GeocodingOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Geocoding<wbr/>Options</a></li>
101
+ <li class="tsd-kind-type-alias"><a href="types/GeocodingSearchResult.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Geocoding<wbr/>Search<wbr/>Result</a></li>
102
+ <li class="tsd-kind-type-alias"><a href="types/GeolocationInfoOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Geolocation<wbr/>Info<wbr/>Options</a></li>
103
+ <li class="tsd-kind-type-alias"><a href="types/GeolocationResult.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Geolocation<wbr/>Result</a></li>
104
+ <li class="tsd-kind-type-alias"><a href="types/GetDataOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Get<wbr/>Data<wbr/>Options</a></li>
105
+ <li class="tsd-kind-type-alias"><a href="types/LanguageGeocodingString.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Language<wbr/>Geocoding<wbr/>String</a></li>
106
+ <li class="tsd-kind-type-alias"><a href="types/ReverseGeocodingOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Reverse<wbr/>Geocoding<wbr/>Options</a></li>
107
+ <li class="tsd-kind-type-alias"><a href="types/StaticMapBaseOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Static<wbr/>Map<wbr/>Base<wbr/>Options</a></li>
108
+ <li class="tsd-kind-type-alias"><a href="types/StaticMapMarker.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Static<wbr/>Map<wbr/>Marker</a></li>
109
+ <li class="tsd-kind-type-alias"><a href="types/XYZ.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>XYZ</a></li>
110
+ <li class="tsd-kind-variable"><a href="variables/LanguageGeocoding.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg>Language<wbr/>Geocoding</a></li>
111
+ <li class="tsd-kind-variable"><a href="variables/config.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg>config</a></li>
112
+ <li class="tsd-kind-variable"><a href="variables/coordinates-1.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg>coordinates</a></li>
113
+ <li class="tsd-kind-variable"><a href="variables/data.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg>data</a></li>
114
+ <li class="tsd-kind-variable"><a href="variables/geocoding.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg>geocoding</a></li>
115
+ <li class="tsd-kind-variable"><a href="variables/geolocation.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg>geolocation</a></li>
116
+ <li class="tsd-kind-variable"><a href="variables/staticMaps.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg>static<wbr/>Maps</a></li></ul></nav></div></div>
117
+ <div class="container tsd-generator">
118
+ <p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div>
119
+ <div class="overlay"></div><script src="assets/main.js"></script></body></html>