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