Code clean

This commit is contained in:
2020-04-10 11:58:05 +02:00
parent abe09f0f69
commit 85cb624a31
5 changed files with 73 additions and 75 deletions

View File

@@ -31,7 +31,7 @@
// Init the globe from library
globe = new Globe({
el: scope,
texture: '/img/globe/map-2k.png',
texture: `/img/globe/map-${window.innerWidth >= 992 ? '4k' : '2k'}.png`,
markers: [...$locations.map(location => {
return {
name: location.name,
@@ -42,8 +42,8 @@
lng: location.coordinates.lng
}
})],
onLinkClicked: () => {},
cameraDistance: 3
cameraDistance: 3,
onLinkClicked: () => {}
})
// Run the globe