{"repo":"dimfeld/svelte-maplibre","free":true,"listed":false,"github":"https://github.com/dimfeld/svelte-maplibre","clone":"git clone https://github.com/dimfeld/svelte-maplibre.git","description":"Svelte bindings for the MapLibre mapping library","language":"Svelte","stars":519,"topics":["maplibre","maplibre-gl-js","mapping","svelte"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Svelte wrapper for the maplibre mapping library. --- This library is functional, but I'm still experimenting with extra features to make advanced functionality easier to use. It also needs proper documentation. In the meantime, the demo site includes code for all the examples, and is a good place to start. Changelog Installation Usage If you use Vite, import the MapLibre worker URL and set it before you create the first map: The ?worker&url import tells Vite to emit the worker as an asset. Call setWorkerUrl in the page component that creates the map or anything else that loads before the map. Other bundlers If using other bundlers, see the MapLibre installation instructions for details on configuring the worker. Developing You should create a .env file to configure the environment. See the .env.example file for the necessary settings. Currently the only environment variable is a MapTiler API key, required for the 3D Buildings example. If you don't have one, you can set this to a blank value to use the other examples. Credits Logo created by Bruce Wayyn","default_branch":null,"files":null,"tree":[],"storefront":"/r/dimfeld","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dimfeld/svelte-maplibre/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}