-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.html
99 lines (86 loc) · 3.49 KB
/
index.html
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<title>Map</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/solid.css" integrity="sha384-VGP9aw4WtGH/uPAOseYxZ+Vz/vaTb1ehm1bwx92Fm8dTrE+3boLfF1SpAtB1z7HW" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/fontawesome.css" integrity="sha384-1rquJLNOM3ijoueaaeS5m+McXPJCGdr5HcA03/VHXxcp2kX2sUrQDmFc3jR5i/C7" crossorigin="anonymous">
<style>
/* Optional: Makes the sample page fill the window. */
html, body {
height: 100%;
margin: 0;
padding: 0;
}
/*vue*/
[v-cloak] {display: none}
@media(max-width: 575px){
#map{
height: 350px!important;
}
.main-title{
font-size: 2rem;
font-weight: normal;
}
}
@media(min-width: 576px){
#map{
height: 100%!important;
}
}
</style>
</head>
<body>
<div class="container-fluid h-100" id="app">
<h1 v-show="loader" class="loader text-center py-5">Loading...</h1>
<div v-cloak class="h-100">
<!-- row -->
<div class="row h-100">
<div class="col-sm-3" style="overflow-y: scroll;">
<h1 class="text-center my-3 display-4 main-title" v-if="point">{{point.label}}</h1>
<button class="btn btn-primary btn-block my-3"
v-if="point.parent"
@click="loadParent"
>
<i class="fas fa-chevron-left"></i>
{{point.parent.label}}
</button>
<div class="card my-3" v-if="point.info">
<div class="card-body">
<div v-html="point.info"></div>
</div>
</div>
<div class="card my-3" v-if="selectedPoint">
<div class="card-body">
<h5 class="card-title">{{selectedPoint.label}}</h5>
<p v-if="selectedPoint.info" class="card-text">
<div v-html="selectedPoint.info"></div>
</p>
<button v-if="selectedPoint.children" @click="loadPoint(selectedPoint)" class="btn btn-success btn-sm btn-block">
Ir al mapa
</button>
</div>
</div>
<div>
<!-- <button @click="resetRegion">Regions</button> -->
</div>
<!-- <pre><small>{{$data}}</small></pre> -->
</div>
<div class="col-sm-9">
<div id="map" class=""></div>
</div>
</div>
<!-- row -->
</div><!-- v-cloak -->
</div><!-- container -->
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBc-6AfDQvdU6W4NRIno2XNSeZLfnuFERs"> </script>
<!-- <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> -->
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<!-- https://github.com/axios/axios -->
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lodash.min.js"></script>
<script src="/js/main.js"></script>
</body>
</html>