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