@maptiler/geocoding-control 0.0.61 → 0.0.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{dist/lib/leafletMapController.d.ts → leaflet-controller.d.ts} +0 -0
- package/leaflet-controller.js +15021 -0
- package/leaflet-controller.umd.js +25 -0
- package/{dist/lib/LeafletGeocodingControl.d.ts → leaflet.d.ts} +0 -0
- package/{dist/leaflet.js → leaflet.js} +1085 -1083
- package/{dist/leaflet.umd.js → leaflet.umd.js} +4 -4
- package/{dist/lib/MaplibreglGeocodingControl.d.ts → maplibre.d.ts} +0 -0
- package/{dist/lib/maplibreglMapController.d.ts → maplibregl-controller.d.ts} +1 -1
- package/maplibregl-controller.js +15041 -0
- package/maplibregl-controller.umd.js +25 -0
- package/{dist/maplibregl.js → maplibregl.js} +1144 -1142
- package/{dist/maplibregl.umd.js → maplibregl.umd.js} +4 -4
- package/{dist/lib/mask.d.ts → mask.d.ts} +2 -1
- package/package.json +50 -18
- package/react.d.ts +26 -0
- package/react.js +1327 -0
- package/react.umd.js +1 -0
- package/src/AppLeaflet.svelte +55 -0
- package/src/AppMaplibregl.svelte +45 -0
- package/src/lib/GeocodingControl.svelte +32 -28
- package/src/lib/ReactGeocodingControl.ts +158 -0
- package/src/lib/leafletMapController.ts +5 -6
- package/src/lib/maplibreglMapController.ts +4 -3
- package/src/lib/mask.ts +2 -1
- package/src/lib/types.ts +3 -1
- package/src/main-copy.ts +59 -0
- package/src/main.ts +65 -0
- package/src/vite-env.d.ts +2 -0
- package/style.css +1 -0
- package/{dist/lib/types.d.ts → types.d.ts} +2 -1
- package/LICENSE +0 -29
- package/README.md +0 -194
- package/dist/index.d.ts +0 -0
- package/dist/main.d.ts +0 -3
- package/dist/style.css +0 -1
package/LICENSE
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
BSD 3-Clause License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2022, MapTiler
|
|
4
|
-
All rights reserved.
|
|
5
|
-
|
|
6
|
-
Redistribution and use in source and binary forms, with or without
|
|
7
|
-
modification, are permitted provided that the following conditions are met:
|
|
8
|
-
|
|
9
|
-
1. Redistributions of source code must retain the above copyright notice, this
|
|
10
|
-
list of conditions and the following disclaimer.
|
|
11
|
-
|
|
12
|
-
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
13
|
-
this list of conditions and the following disclaimer in the documentation
|
|
14
|
-
and/or other materials provided with the distribution.
|
|
15
|
-
|
|
16
|
-
3. Neither the name of the copyright holder nor the names of its
|
|
17
|
-
contributors may be used to endorse or promote products derived from
|
|
18
|
-
this software without specific prior written permission.
|
|
19
|
-
|
|
20
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
21
|
-
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
22
|
-
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
23
|
-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
24
|
-
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
25
|
-
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
26
|
-
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
27
|
-
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
28
|
-
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
29
|
-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
package/README.md
DELETED
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
# MapTiler Geocoding control for MapLibre GL JS and Leaflet
|
|
2
|
-
|
|
3
|
-
A geocoding control for [Maplibre GL JS](https://github.com/maplibre/maplibre-gl-js) and [Leaflet](https://github.com/maplibre/maplibre-gl-js) which utilizes [Maptiler Cloud Geocoding API](https://www.maptiler.com/cloud/geocoding/).
|
|
4
|
-
|
|
5
|
-
Component can be used as ES module or UMD module.
|
|
6
|
-
|
|
7
|
-
## Usage
|
|
8
|
-
|
|
9
|
-
### Usage with a module bundler
|
|
10
|
-
|
|
11
|
-
Example for Maplibre GL JS:
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
npm install --save @maptiler/geocoding-control maplibre-gl
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
```js
|
|
18
|
-
import maplibregl from "maplibre-gl";
|
|
19
|
-
import { GeocodingControl } from "@maptiler/geocoding-control/maplibregl";
|
|
20
|
-
import "@maptiler/geocoding-control/dist/style.css";
|
|
21
|
-
import "maplibre-gl/dist/maplibre-gl.css";
|
|
22
|
-
|
|
23
|
-
const apiKey = "YOUR_MAPTILER_API_KEY_HERE";
|
|
24
|
-
|
|
25
|
-
const map = new maplibregl.Map({
|
|
26
|
-
container: "map", // id of HTML container element
|
|
27
|
-
style: "https://api.maptiler.com/maps/streets/style.json?key=" + apiKey,
|
|
28
|
-
center: [16.3, 49.2],
|
|
29
|
-
zoom: 7,
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
const gc = new GeocodingControl({ apiKey, maplibregl });
|
|
33
|
-
|
|
34
|
-
map.addControl(gc);
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
Example for Leaflet:
|
|
38
|
-
|
|
39
|
-
```bash
|
|
40
|
-
npm install --save @maptiler/geocoding-control leaflet
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
```js
|
|
44
|
-
import * as L from "leaflet";
|
|
45
|
-
import { GeocodingControl } from "@maptiler/geocoding-control/leaflet";
|
|
46
|
-
import "@maptiler/geocoding-control/dist/style.css";
|
|
47
|
-
|
|
48
|
-
const apiKey = "YOUR_MAPTILER_API_KEY_HERE";
|
|
49
|
-
|
|
50
|
-
const map = L.map(document.getElementById("map")).setView([49.2, 16.3], 6);
|
|
51
|
-
|
|
52
|
-
const scale = devicePixelRatio > 1.5 ? "@2x" : "";
|
|
53
|
-
|
|
54
|
-
L.tileLayer(
|
|
55
|
-
`https://api.maptiler.com/maps/streets/{z}/{x}/{y}${scale}.png?key=` + apiKey,
|
|
56
|
-
{
|
|
57
|
-
tileSize: 512,
|
|
58
|
-
zoomOffset: -1,
|
|
59
|
-
minZoom: 1,
|
|
60
|
-
attribution:
|
|
61
|
-
'<a href="https://www.maptiler.com/copyright/" target="_blank">© MapTiler</a>, ' +
|
|
62
|
-
'<a href="https://www.openstreetmap.org/copyright" target="_blank">© OpenStreetMap contributors</a>',
|
|
63
|
-
crossOrigin: true,
|
|
64
|
-
}
|
|
65
|
-
).addTo(map);
|
|
66
|
-
|
|
67
|
-
L.control.maptilerGeocoding({ apiKey }).addTo(map);
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
For examples without using bundler see `demo-maplibregl.html` or `demo-leaflet.html`. After building this library (`npm install && npm run build`) you can open it in the browser:
|
|
71
|
-
|
|
72
|
-
- Maplibre GL JS: `sensible-browser file://$(pwd)/demo-maplibregl.html#key=YOUR_MAPTILER_API_KEY_HERE`
|
|
73
|
-
- Leaflet: `sensible-browser file://$(pwd)/demo-leaflet.html#key=YOUR_MAPTILER_API_KEY_HERE`
|
|
74
|
-
|
|
75
|
-
## API Documentation
|
|
76
|
-
|
|
77
|
-
### Options
|
|
78
|
-
|
|
79
|
-
- `apiKey`<sup>\*</sup>: `string` - Maptiler API key
|
|
80
|
-
- `maplibregl`: `MapLibreGL` - A Maplibre GL instance to use when creating [Markers](https://maplibre.org/maplibre-gl-js-docs/api/markers/#marker). Required if `options.marker` is `true`. Used only with Maplibre GL library.
|
|
81
|
-
- `debounceSearch`: `number` - Sets the amount of time, in milliseconds, to wait before querying the server when a user types into the Geocoder input box. This parameter may be useful for reducing the total number of API calls made for a single query. Default `200`.
|
|
82
|
-
- `proximity`: `[number, number]` - A proximity argument: this is a geographical point given as an object with latitude and longitude properties. Search results closer to this point will be given higher priority.
|
|
83
|
-
- `placeholder`: `string` - Override the default placeholder attribute value. Default `"Search"`.
|
|
84
|
-
- `errorMessage`: `string` - Override the default error message. Default `"Searching failed"`.
|
|
85
|
-
- `noResultsMessage`: `string` - Override the default message if no results are found. Default `"No results found"`.
|
|
86
|
-
- `trackProximity`: `boolean` - If true, the geocoder proximity will automatically update based on the map view. Default `true`.
|
|
87
|
-
- `minLength`: `number` - Minimum number of characters to enter before results are shown. Default `2`.
|
|
88
|
-
- `bbox`: `[number, number, number, number]` - A bounding box argument: this is a bounding box given as an array in the format [minX, minY, maxX, maxY]. Search results will be limited to the bounding box.
|
|
89
|
-
- `language`: `string | string[]` - Specify the language(s) to use for response text and query result weighting. Options are IETF language tags comprised of a mandatory ISO 639-1 language code and optionally one or more IETF subtags for country or script. More than one value can also be specified, separated by commas. Set to empty string or empty array for forcing no language preference. If this parameter is not provided at all the browser's language settings will be used.
|
|
90
|
-
- `showResultsWhileTyping`: `boolean` - If `false`, indicates that search will only occur on enter key press. If `true`, indicates that the Geocoder will search on the input box being updated above the minLength option. Default `false`.
|
|
91
|
-
- `marker`: `boolean | MarkerOptions` - If `true`, a [MapLibre GL Marker](https://maplibre.org/maplibre-gl-js-docs/api/markers/#marker) / [Leaflet Marker](https://leafletjs.com/reference.html#marker) will be added to the map at the location of the user-selected result using a default set of Marker options. If the value is an object, the marker will be constructed using these options. If `false`, no marker will be added to the map. Requires that `options.maplibregl` also be set. Default `true`.
|
|
92
|
-
- `showResultMarkers`: `boolean | MarkerOptions` - If `true`, [MapLibre GL Marker](https://maplibre.org/maplibre-gl-js-docs/api/markers/#marker) / [Leaflet Marker](https://leafletjs.com/reference.html#marker) will be added to the map at the location the top results for the query. If the value is an object, the marker will be constructed using these options. If `false`, no marker will be added to the map. Requires that `options.maplibregl` also be set. Default `true`.
|
|
93
|
-
- `zoom`: `number` - On geocoded result what zoom level should the map animate to when a bbox isn't found in the response. If a bbox is found the map will fit to the bbox. Default `16`.
|
|
94
|
-
- `flyTo`: `boolean | (FlyToOptions & FitBoundsOptions)` - If `false`, animating the map to a selected result is disabled. If `true`, animating the map will use the default animation parameters. If an object, it will be passed as options to the map `flyTo` or `fitBounds` method providing control over the animation of the transition. Default `true`.
|
|
95
|
-
- `collapsed`: `boolean` - If `true`, the geocoder control will collapse until hovered or in focus. Default `false`.
|
|
96
|
-
- `clearOnBlur`: `boolean` - If true, the geocoder control will clear its value when the input blurs. Default `false`.
|
|
97
|
-
- `filter`: `(feature: Feature) => boolean` - A function which accepts a Feature in the Carmen GeoJSON format to filter out results from the Geocoding API response before they are included in the suggestions list. Return true to keep the item, false otherwise.
|
|
98
|
-
- `class`: `string` - Class of the root element.
|
|
99
|
-
- `enableReverse`: `boolean | "always""` - Set to `true` to enable reverse geocoding button with title. Set to `"always"` to reverse geocoding be always active. Default `false`.
|
|
100
|
-
- `reverseButtonTitle`: `string` - Reverse toggle button title. Default `"toggle reverse geocoding"`.
|
|
101
|
-
- `clearButtonTitle`: `string` - Clear button title. Default `"clear"`.
|
|
102
|
-
- `showFullGeometry`: `boolean` - Set to `true` to show full feature geometry of the chosen result. Otherwise only marker will be shown. Default `true`.
|
|
103
|
-
- `fullGeometryStyle`: `{ fill: Pick<FillLayerSpecification, "layout" | "paint" | "filter">; line: Pick<LineLayerSpecification, "layout" | "paint" | "filter">; } | (L.PathOptions | L.StyleFunction)` - style of the full feature geometry. See Mapplibre GL JS or Leaflet documentation.
|
|
104
|
-
- `fuzzyMatch`: `boolean` - Set to `false` to disable fuzzy search. Default `true`.
|
|
105
|
-
- `limit`: `number` - Maximum number of results to show. Default `5`.
|
|
106
|
-
- `country`: `string | string[]` - Limit search to specified country(ies). Default `undefined` (use all countries). Specify as [alpha-2 ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) lowercase code.
|
|
107
|
-
- `types`: `string[]` - Filter of feature types to return. Default `undefined` (all available feature types are returned).
|
|
108
|
-
|
|
109
|
-
### Methods
|
|
110
|
-
|
|
111
|
-
- `setQuery(value: string, submit = true): void` - set the query and optionally submit it
|
|
112
|
-
- `focus(): void` - focus the query input box
|
|
113
|
-
- `blur(): void` - blur the query input box
|
|
114
|
-
- `setReverseMode(value: boolean | "always"): void` - set reverse mode
|
|
115
|
-
|
|
116
|
-
### Events
|
|
117
|
-
|
|
118
|
-
Events are implemented using [EventTarget](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget) and [CustomEvent](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent).
|
|
119
|
-
|
|
120
|
-
- `select` - Fired on highlighting search result in the dropdown by hovering it or by keyboard selection. Event value will be set to the highlighted `Feature` or to `undefined` if nothing is highlighted.
|
|
121
|
-
- `pick` - Fired on picking the result from the dropdown. Event value will be set to the picked `Feature` or to `undefined` if nothing is picked (eg. search input is cleared).
|
|
122
|
-
- `optionsVisibilityChange` - Fired with `true` value if dropdown list appears, `false` if it disappears
|
|
123
|
-
- `featuresListed` - Fired after features are retrieved from the server. Event value contains list of features or `undefined`.
|
|
124
|
-
- `featuresMarked` - Fired after features are marked on the map. Event value contains list of features or `undefined`.
|
|
125
|
-
- `response` - Fired after HTTP response of the geocoding server. Event value contains object with requested `url` and responded `featureCollection`.
|
|
126
|
-
- `reversetoggle` - Fired if reverse geocoding button is toggled. Event value is `true` if reverse geocoding mode is active, otherwise `false`.
|
|
127
|
-
- `querychange` - Fired if query was changed. Event value is the query string.
|
|
128
|
-
|
|
129
|
-
Example:
|
|
130
|
-
|
|
131
|
-
```javascript
|
|
132
|
-
geocodingControl.addEventListener("optionsVisibilityChange", (e) => {
|
|
133
|
-
console.log("Options visible:", e.detail);
|
|
134
|
-
});
|
|
135
|
-
```
|
|
136
|
-
|
|
137
|
-
## Svelte component
|
|
138
|
-
|
|
139
|
-
In addition to using the component as MapLibre GL Control it is also possible to use it stand-alone in Svelte projects.
|
|
140
|
-
Component API matches API described above and options are exposed as component properties.
|
|
141
|
-
|
|
142
|
-
```svelte
|
|
143
|
-
<script lang="ts">
|
|
144
|
-
import GeocodingControl from "@maptiler/geocoding-control/src/lib/GeocodingControl.svelte";
|
|
145
|
-
import GeocodingControl from "@maptiler/geocoding-control/src/lib/GeocodingControl.svelte";
|
|
146
|
-
import { createMaplibreglMapController } from "@maptiler/geocoding-control/src/lib/maplibreglMapController";
|
|
147
|
-
import type { MapController } from "@maptiler/geocoding-control/src/lib/types";
|
|
148
|
-
import maplibregl from "maplibre-gl";
|
|
149
|
-
import "maplibre-gl/dist/maplibre-gl.css";
|
|
150
|
-
|
|
151
|
-
const apiKey = "YOUR_MAPTILER_API_KEY_HERE";
|
|
152
|
-
|
|
153
|
-
let mapController: MapController;
|
|
154
|
-
|
|
155
|
-
let container: HTMLElement;
|
|
156
|
-
|
|
157
|
-
onMount(() => {
|
|
158
|
-
|
|
159
|
-
const map = new maplibregl.Map({
|
|
160
|
-
style: "https://api.maptiler.com/maps/streets/style.json?key=" + apiKey,
|
|
161
|
-
container,
|
|
162
|
-
});
|
|
163
|
-
|
|
164
|
-
const mapController = createMaplibreglMapController(map, maplibregl);
|
|
165
|
-
}
|
|
166
|
-
</script>
|
|
167
|
-
|
|
168
|
-
<div class="map" bind:this={container} />
|
|
169
|
-
|
|
170
|
-
{#if mapController}
|
|
171
|
-
<GeocodingControl {mapController} {apiKey} {maplibregl} />
|
|
172
|
-
{/if}
|
|
173
|
-
|
|
174
|
-
<style>
|
|
175
|
-
.map {
|
|
176
|
-
position: absolute;
|
|
177
|
-
inset: 0;
|
|
178
|
-
}
|
|
179
|
-
</style>
|
|
180
|
-
```
|
|
181
|
-
|
|
182
|
-
## Building
|
|
183
|
-
|
|
184
|
-
```bash
|
|
185
|
-
npm install && npm run build
|
|
186
|
-
```
|
|
187
|
-
|
|
188
|
-
You will find compilation result in `dist` directory.
|
|
189
|
-
|
|
190
|
-
## Running in dev mode
|
|
191
|
-
|
|
192
|
-
```bash
|
|
193
|
-
npm install && VITE_API_KEY=YOUR_MAPTILER_API_KEY_HERE npm run dev
|
|
194
|
-
```
|
package/dist/index.d.ts
DELETED
|
File without changes
|
package/dist/main.d.ts
DELETED
package/dist/style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
div.svelte-7cmwmc{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);pointer-events:none;display:flex;align-items:center}svg.svelte-7cmwmc{animation:svelte-7cmwmc-rotate .8s infinite cubic-bezier(.45,.05,.55,.95)}@keyframes svelte-7cmwmc-rotate{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}svg.svelte-1k1cmht.svelte-1k1cmht{display:block;fill:#6b7c93;stroke:#6b7c93}.list-icon.svelte-1k1cmht.svelte-1k1cmht{grid-row:1/3;align-self:center;margin:8px}.in-map.svelte-1k1cmht.svelte-1k1cmht{height:30px}.maplibregl-canvas-container .marker-selected{z-index:1}.maplibregl-canvas-container svg.svelte-1k1cmht path.svelte-1k1cmht,.leaflet-map-pane svg.svelte-1k1cmht path.svelte-1k1cmht{fill:#3170fe;stroke:#3170fe}.marker-selected svg.svelte-1k1cmht path.svelte-1k1cmht{fill:#98b7ff;stroke:#3170fe}.marker-reverse svg.svelte-1k1cmht path.svelte-1k1cmht{fill:silver;stroke:gray}.marker-interactive{cursor:pointer!important}.marker-fuzzy svg.svelte-1k1cmht path.svelte-1k1cmht{fill:silver;stroke:gray}.marker-fuzzy.marker-selected svg.svelte-1k1cmht path.svelte-1k1cmht{fill:#ddd;stroke:silver}.maptiler-gc-popup>.maplibregl-popup-content{padding:2px 8px}svg.svelte-en2qvf{display:block;fill:var(--color-icon-button)}form.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d,form.svelte-1h1zm6d .svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d,form.svelte-1h1zm6d .svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d:after,form.svelte-1h1zm6d .svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d:before{box-sizing:border-box}form.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d{font-family:Ubuntu,Open Sans,Helvetica Neue,Arial,Helvetica,sans-serif;position:relative;background-color:#fff;width:100%;z-index:10;border-radius:4px;transition:max-width .25s;box-shadow:0 2px 8px #33335926;--color-text:#333359;--color-icon-button:#333359}form.can-collapse.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d{max-width:35px}form.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d,form.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d:focus-within,form.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d:hover{max-width:240px}input.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d{font:inherit;font-size:14px;width:100%;border:0;background-color:transparent;margin:0;height:36px;color:#000000bf;white-space:nowrap;overflow:hidden;padding:0}input.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d:focus{color:#000000bf;outline:0;outline:none;box-shadow:none}ul.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d,div.error.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d,div.no-results.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d{background-color:#fff;border-radius:4px;left:0;list-style:none;margin:0;padding:0;position:absolute;width:100%;top:calc(100% + 6px);font-size:14px;box-shadow:0 2px 8px #33335926;line-height:16px;overflow:hidden}.maplibregl-ctrl-bottom-left ul.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d,.maplibregl-ctrl-bottom-right ul.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d{top:auto;bottom:100%}li.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d{cursor:default;display:grid;grid-template-columns:auto 1fr;color:var(--color-text);padding:4px 0}li.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d:first-child{padding-top:8px}li.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d:last-child{padding-bottom:8px}li.svelte-1h1zm6d>span.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d{overflow:hidden;padding-right:8px}li.svelte-1h1zm6d>span.svelte-1h1zm6d>span.svelte-1h1zm6d.svelte-1h1zm6d{white-space:nowrap;display:block;min-width:fit-content}li.selected.svelte-1h1zm6d>span.svelte-1h1zm6d>span.svelte-1h1zm6d.svelte-1h1zm6d{animation:svelte-1h1zm6d-backAndForth 5s linear infinite}li.svelte-1h1zm6d>span.svelte-1h1zm6d:nth-of-type(1)>span.svelte-1h1zm6d>span.svelte-1h1zm6d:nth-of-type(1){font-weight:700}li.svelte-1h1zm6d>span.svelte-1h1zm6d:nth-of-type(1)>span.svelte-1h1zm6d>span.svelte-1h1zm6d:nth-of-type(2){color:#aeb6c7;font-size:12px;padding-left:4px}li.selected.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d{background-color:#f3f3f3}button.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d:hover{background-color:transparent}button.svelte-1h1zm6d:hover svg,button.active.svelte-1h1zm6d svg{fill:#6b7c92}button.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d{padding:0;margin:0;border:0;background-color:transparent}.input-group.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d{display:flex;align-items:stretch;gap:7px;padding-inline:8px;outline:#c1cfe4 solid 2px;border-radius:4px;overflow:hidden}.input-group.svelte-1h1zm6d:hover .displayable.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d{visibility:visible}.input-group.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d:focus-within{outline:#3170fe solid 2px}div.error.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d,div.no-results.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d{font:inherit;font-size:14px;padding:6px 10px}div.error.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d{color:#e25041}div.no-results.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d{color:var(--color-text)}.clear-button-container.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d{position:relative;display:flex;align-items:stretch}.clear-button-container.svelte-1h1zm6d button.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d{visibility:hidden}@keyframes svelte-1h1zm6d-backAndForth{0%{transform:translate(0)}10%{transform:translate(0)}45%{transform:translate(calc(-100% + 196px))}55%{transform:translate(calc(-100% + 196px))}90%{transform:translate(0)}to{transform:translate(0)}}form.can-collapse.svelte-1h1zm6d button.svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d:not(:nth-of-type(1)){opacity:0;transition:opacity .25s}form.can-collapse.svelte-1h1zm6d:focus-within .svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d:not(:nth-of-type(1)),form.can-collapse.svelte-1h1zm6d:hover .svelte-1h1zm6d.svelte-1h1zm6d.svelte-1h1zm6d:not(:nth-of-type(1)){opacity:1}
|