diff --git a/examples/maptiler-sdk/AppMapLibreGl.svelte b/examples/maptiler-sdk/AppMapLibreGl.svelte
new file mode 100644
index 0000000..99a06d5
--- /dev/null
+++ b/examples/maptiler-sdk/AppMapLibreGl.svelte
@@ -0,0 +1,54 @@
+
+
+
+
+
diff --git a/examples/maptiler-sdk/index.html b/examples/maptiler-sdk/index.html
new file mode 100644
index 0000000..e025e77
--- /dev/null
+++ b/examples/maptiler-sdk/index.html
@@ -0,0 +1,9 @@
+
+
+
+
+
MapTiler Geocoding Control :: MapTiler SDK
+
+
+
+
diff --git a/examples/maptiler-sdk/main.ts b/examples/maptiler-sdk/main.ts
new file mode 100644
index 0000000..6aa2d5c
--- /dev/null
+++ b/examples/maptiler-sdk/main.ts
@@ -0,0 +1,9 @@
+import App from "./AppMapLibreGl.svelte";
+
+const appElement = document.getElementById("app");
+
+if (!appElement) {
+ throw new Error("element with id 'app' not found");
+}
+
+export default new App({ target: appElement });
diff --git a/index.html b/index.html
index bfbc376..604b24f 100644
--- a/index.html
+++ b/index.html
@@ -12,6 +12,7 @@
MapTiler Geocoding Control Examples
+ - MapTiler SDK
- MapLibre GL JS
- Leaflet
- OpenLayers
diff --git a/src/GeocodingControl.svelte b/src/GeocodingControl.svelte
index d972cc9..dd0a1d4 100644
--- a/src/GeocodingControl.svelte
+++ b/src/GeocodingControl.svelte
@@ -923,6 +923,11 @@
flex-shrink: 0;
}
+ :global(.maplibregl-ctrl-geocoder:not(.maptiler-ctrl) .search-button svg) {
+ width: 12px !important;
+ transform: translate(0.5px, 0);
+ }
+
.clear-button-container {
display: flex;
display: none;
@@ -958,7 +963,7 @@
& form {
&.can-collapse {
- max-width: 34px;
+ max-width: 33px;
}
&,
diff --git a/src/SearchIcon.svelte b/src/SearchIcon.svelte
index 291b472..2b50018 100644
--- a/src/SearchIcon.svelte
+++ b/src/SearchIcon.svelte
@@ -1,12 +1,19 @@
-