0.0.4 • Published 4 months ago
bandsintown-gig-map v0.0.4
bandsintown-gig-map
A vue3 component for integrating a map which is showing all your bandsintown gigs.
First Setup
- Go to your BandsinTown artist profile (https://artists.bandsintown.com)
- Copy your artist id (the number) from the url: artists.bandsintown.com/artists/1553223458/home
- Go to settings -> copy your API key
BandsinTown Api documentation:
https://help.artists.bandsintown.com/en/articles/9186477-api-documentation
Installation
npm i bandsintown-gig-map
How to import and use the component
- Import the component and styles
import BandsinTownGigMap from 'bandsintown-gig-map'
import 'bandsintown-gig-map/style.css';
- Use the component
<BandsinTownGigMap
:credentials="{
artist_id: YOUR BANDINTOWN ARTIST ID,
api_key: 'YOUR BANDSINTOWN API KEY'
}"
:leaflet_settings="{
height: '450px',
width: '100%',
start_latitude: 50.2334908498,
start_longitude: 12,
start_zoomlevel: 4.4,
scrollWheelZoom: false
}"
/>
Dependencies
- Leaflet
Enable Dark Mode
.leaflet-layer,
.leaflet-control-zoom-in,
.leaflet-control-zoom-out,
.leaflet-control-attribution {
filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}
bandsintown-gig-map
- feel free to contribute or open pull requests. cheers