Our Map component uses the Google Maps API and it comes with a custom interface that matches the theme’s colours. Keep reading our Maps examples and learn how to use this plugin.
Usage
In order to use this plugin on your page you will need to include the following script inside your public/index.html page, right before the end of the </head> tag:
Get your API key
In order to get your Google Maps API key navigate to the following page: Google Maps.
After you’ve got your api key, you will need to replace in the above script, the YOUR_API_KEY_HERE with that key.
Example
This component is already defined inside src/components/Maps/MapExample.svelte. Check it out.