globe update
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user