Temporarily disable the globe
This commit is contained in:
@@ -20,34 +20,34 @@
|
||||
*/
|
||||
onMount(async () => {
|
||||
// For browser only
|
||||
if (process.browser) {
|
||||
// Import libraries and code
|
||||
let WebglGlobe
|
||||
await import('globe').then(module => WebglGlobe = module.default)
|
||||
// if (process.browser) {
|
||||
// // Import libraries and code
|
||||
// let WebglGlobe
|
||||
// await import('globe').then(module => WebglGlobe = module.default)
|
||||
|
||||
// Init the globe from library
|
||||
globe = new WebglGlobe({
|
||||
el: scope,
|
||||
texture: '/img/globe/map-4k.png',
|
||||
markers: [...$locations.map(location => {
|
||||
return {
|
||||
name: location.name,
|
||||
slug: location.slug,
|
||||
countrySlug: location.country.slug,
|
||||
lat: location.coordinates.lat,
|
||||
lng: location.coordinates.lng
|
||||
}
|
||||
})]
|
||||
})
|
||||
// // Init the globe from library
|
||||
// globe = new WebglGlobe({
|
||||
// el: scope,
|
||||
// texture: '/img/globe/map-4k.png',
|
||||
// markers: [...$locations.map(location => {
|
||||
// return {
|
||||
// name: location.name,
|
||||
// slug: location.slug,
|
||||
// countrySlug: location.country.slug,
|
||||
// lat: location.coordinates.lat,
|
||||
// lng: location.coordinates.lng
|
||||
// }
|
||||
// })]
|
||||
// })
|
||||
|
||||
// Run the globe
|
||||
resize()
|
||||
update()
|
||||
}
|
||||
// // Run the globe
|
||||
// resize()
|
||||
// update()
|
||||
// }
|
||||
})
|
||||
</script>
|
||||
|
||||
<svelte:window on:resize={resize} />
|
||||
<!-- <svelte:window on:resize={resize} /> -->
|
||||
|
||||
<div class="globe" class:globe--part={type === 'part'} bind:this={scope}>
|
||||
<div class="wrap">
|
||||
|
||||
Reference in New Issue
Block a user