Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<template>
<section id="map">
<div id="grid-container-interactive">
<div id="title">
<h2 class="grid-title">
<p>Map Title</p>
</h2>
</div>
</div>
</section>
</template>
<script>
import * as d3Base from 'd3';
import { isMobile } from 'mobile-device-detect';
export default {
name: "Maps",
components: {
},
props: {
data: Object
},
data() {
return {
publicPath: import.meta.env.BASE_URL, // find the files when on different deployment roots
mobileView: isMobile, // test for mobile
}
},
mounted(){
const self = this;
},
methods:{
isMobile() {
if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
return true
} else {
return false
}
}
}
}
</script>