globe update

This commit is contained in:
2020-04-17 15:09:58 +02:00
parent aeb4196918
commit 50d36d4015
7 changed files with 48 additions and 97 deletions

View File

@@ -31,6 +31,7 @@
// Init the globe from library
globe = new Globe({
el: scope,
autoRotationSpeed: -0.01,
texture: `/img/globe/map-${window.innerWidth >= 992 ? '4k' : '2k'}.png`,
markers: [...$locations.map(location => {
return {
@@ -39,7 +40,8 @@
countryName: location.country.name,
countrySlug: location.country.slug,
lat: location.coordinates.lat,
lng: location.coordinates.lng
lng: location.coordinates.lng,
className: location.slug === 'marseille' ? 'is-left' : '',
}
})],
cameraDistance: 3,