@maptiler/geocoding-control 0.0.74 → 0.0.75
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/README.md +3 -4
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# MapTiler Geocoding control for MapLibre GL JS and Leaflet
|
|
2
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)
|
|
3
|
+
A geocoding control for [Maplibre GL JS](https://github.com/maplibre/maplibre-gl-js) and [Leaflet](https://github.com/maplibre/maplibre-gl-js) utilizes [MapTiler Cloud Geocoding API](https://www.maptiler.com/cloud/geocoding/). With this control, users of your application can find any place on Earth (States, Cities, Streets, ...) down to the address level, restrict the search area to a specific country, highlight searched results on the map, autocomplete words while typing, and much more.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
The component can be used as an ES module or UMD module.
|
|
6
6
|
|
|
7
|
-
Geocoding control is provided
|
|
7
|
+
Geocoding control is also provided as [React component](#react) and a [Svelte component](#svelte).
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
@@ -191,7 +191,6 @@ Component API matches API described above where options and events are exposed a
|
|
|
191
191
|
|
|
192
192
|
```svelte
|
|
193
193
|
<script lang="ts">
|
|
194
|
-
import GeocodingControl from "@maptiler/geocoding-control/src/lib/GeocodingControl.svelte";
|
|
195
194
|
import GeocodingControl from "@maptiler/geocoding-control/src/lib/GeocodingControl.svelte";
|
|
196
195
|
import { createMaplibreglMapController } from "@maptiler/geocoding-control/src/lib/maplibreglMapController";
|
|
197
196
|
import type { MapController } from "@maptiler/geocoding-control/src/lib/types";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maptiler/geocoding-control",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.75",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Martin Ždila",
|
|
@@ -86,12 +86,12 @@
|
|
|
86
86
|
"@turf/difference": "^6.5.0",
|
|
87
87
|
"@turf/union": "^6.5.0",
|
|
88
88
|
"@types/leaflet": "^1.9.0",
|
|
89
|
-
"@types/react": "^18.0.
|
|
90
|
-
"@types/react-dom": "^18.0.
|
|
89
|
+
"@types/react": "^18.0.28",
|
|
90
|
+
"@types/react-dom": "^18.0.11",
|
|
91
91
|
"concurrently": "^7.6.0",
|
|
92
92
|
"leaflet": "^1.9.3",
|
|
93
93
|
"maplibre-gl": "^2.4.0",
|
|
94
|
-
"prettier": "^2.8.
|
|
94
|
+
"prettier": "^2.8.4",
|
|
95
95
|
"prettier-plugin-svelte": "^2.9.0",
|
|
96
96
|
"react": "^18.2.0",
|
|
97
97
|
"react-dom": "^18.2.0",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"svelte-preprocess": "^5.0.1",
|
|
101
101
|
"tslib": "^2.5.0",
|
|
102
102
|
"typescript": "^4.9.5",
|
|
103
|
-
"vite": "^4.1.
|
|
103
|
+
"vite": "^4.1.3"
|
|
104
104
|
},
|
|
105
105
|
"peerDependencies": {
|
|
106
106
|
"leaflet": "^1.9.3",
|