Svelte component

In addition to using the component as MapTiler SDK control or any other map library control, it is also possible to use it stand-alone in Svelte projects with or without MapTiler SDK, MapLibre GL JS, Leaflet, etc. integration.

Component API matches API Reference where options and events are exposed as component properties and methods are callable on the component reference.

Example for integration with MapLibre GL JS

Live Examples

Svelte geocoding control how to search places