38
38
<gmap-polygon :options =" polygonOptions" :paths =" paths" ></gmap-polygon >
39
39
</GmapMap >
40
40
<!-- "top: 0; right: 0; width: calc(100% - 100px); position: absolute; z-index: 100" -->
41
- <div
42
- v-if =" !hamburger"
43
- style =" position : absolute ; top : 70px ; z-index : 999 ;"
44
- class =" w-full"
45
- >
41
+ <div v-if =" !hamburger" style =" position : absolute ; top : 70px ; z-index : 999 ;" class =" w-full" >
46
42
<label >
47
43
<gmap-autocomplete
48
44
placeholder =" Type an address Ex. Filellinon 10, Athens, Greece"
55
51
@click="addButton"
56
52
>
57
53
Add
58
- </button> -->
54
+ </button>-->
59
55
</label >
60
56
</div >
61
- <div class =" relative h-full w-full" >
62
- <div
63
- class =" absolute bottom-0 right-0 h-64 w-48"
64
- style =" text-align : left ;"
65
- >
57
+ <div class =" relative h-full w-full" v-if =" !hamburger" >
58
+ <div class =" absolute bottom-0 right-0 h-64 w-16" style =" text-align : left ;" >
66
59
<button
67
60
@click ="
68
61
buttons.ote.isOn = !buttons.ote.isOn;
69
- showCabinets('ote');
70
- "
71
- :class ="
72
- buttons.ote.isOn
62
+ showCabinets('ote'); buttons.ote.isOn
73
63
? (buttons.ote.text = '✔ OTE')
74
64
: (buttons.ote.text = 'OTE')
75
65
"
76
- type = " button "
66
+ :class = " buttons.ote.isOn ? 'bg-blue-300': 'bg-blue-700' "
77
67
style =" position : fixed ; z-index : 999 ; bottom : 600px ;"
78
- class =" bg-blue-700 hover:bg-blue-500 text-white font-bold py-2 px-4 rounded"
68
+ class =" hover:bg-blue-500 text-white font-bold py-2 px-4 rounded"
79
69
>
80
- {{ buttons.ote.text }}
70
+ < img :src = " markerIcons.OTE " />
81
71
</button >
82
72
<button
83
73
@click ="
84
74
buttons.wind.isOn = !buttons.wind.isOn;
85
- showCabinets('wind');
86
- "
87
- :class ="
88
- buttons.wind.isOn
75
+ showCabinets('wind'); buttons.wind.isOn
89
76
? (buttons.wind.text = '✔ WIND')
90
77
: (buttons.wind.text = 'WIND')
91
78
"
79
+ :class =" buttons.wind.isOn ? 'bg-blue-400': 'bg-blue-500'"
92
80
style =" position : fixed ; z-index : 999 ; bottom : 550px ;"
93
- class =" bg-blue-500 hover:bg-blue-400 text-white font-bold py-2 px-4 rounded"
81
+ class =" hover:bg-blue-400 text-white font-bold py-2 px-4 rounded"
94
82
>
95
- {{ buttons.wind.text }}
83
+ < img :src = " markerIcons.WIND " />
96
84
</button >
97
85
<button
98
86
@click ="
99
87
buttons.vf.isOn = !buttons.vf.isOn;
100
- showCabinets('vf');
101
- "
102
- :class ="
103
- buttons.vf.isOn
88
+ showCabinets('vf'); buttons.vf.isOn
104
89
? (buttons.vf.text = '✔ Vodafone')
105
90
: (buttons.vf.text = 'Vodafone')
106
91
"
92
+ :class =" buttons.vf.isOn ? 'bg-red-300': 'bg-red-700'"
107
93
style =" position : fixed ; z-index : 999 ; bottom : 500px ;"
108
- class =" bg-red-700 hover:bg-red-500 text-white font-bold py-2 px-4 rounded"
94
+ class =" hover:bg-red-500 text-white font-bold py-2 px-4 rounded"
109
95
>
110
- {{ buttons.vf.text }}
96
+ < img :src = " markerIcons.Vodafone " />
111
97
</button >
112
98
<button
113
99
@click ="
114
100
buttons.rurcon.isOn = !buttons.rurcon.isOn;
115
- showCabinets('rurcon');
116
- "
117
- :class ="
118
- buttons.rurcon.isOn
119
- ? (buttons.rurcon.text = '✔ Rural Connect')
120
- : (buttons.rurcon.text = 'Rural Connect')
101
+ showCabinets('rurcon'); buttons.rurcon.isOn
102
+ ? (buttons.rurcon.text = '✔')
103
+ : (buttons.rurcon.text = '')
121
104
"
105
+ :class =" buttons.rurcon.isOn ? 'bg-orange-300': 'bg-orange-800'"
122
106
style =" position : fixed ; z-index : 999 ; bottom : 450px ;"
123
- class =" bg-orange-800 hover:bg-orange-700 text-white font-bold py-2 px-4 rounded"
107
+ class =" hover:bg-orange-700 text-white font-bold py-2 px-4 rounded"
124
108
>
125
- {{ buttons.rurcon.text }}
109
+ < img :src = " markerIcons.RURALCONNECT " />
126
110
</button >
127
111
</div >
128
112
</div >
148
132
class =" rounded relative h-48 w-36 left-2 invisible lg:visible xl:visible"
149
133
style =" position : relative ; top : 250px ; z-index : 999 ;"
150
134
>
151
- <div
152
- class =" rounded bg-white shadow-md h-48 w-36 p-6 flex flex-col justify-around"
153
- >
135
+ <div class =" rounded bg-white shadow-md h-48 w-36 p-6 flex flex-col justify-around" >
154
136
<div >
155
137
<p class =" text-base text-gray-600" >Cabinets</p >
156
138
</div >
157
139
<div >
158
140
<p class =" text-2xl text-gray-700 font-bold" >
159
- <animated-number
160
- :value =" numberOfCabinets"
161
- :duration =" 3000"
162
- round =" 1"
163
- />
141
+ <animated-number :value =" numberOfCabinets" :duration =" 3000" round =" 1" />
164
142
</p >
165
143
</div >
166
144
<div >
167
145
<p class =" text-base text-gray-600" >Centers</p >
168
146
</div >
169
147
<div >
170
148
<p class =" text-2xl text-gray-700 font-bold" >
171
- <animated-number
172
- :value =" numberOfCenters"
173
- :duration =" 5000"
174
- round =" 1"
175
- />
149
+ <animated-number :value =" numberOfCenters" :duration =" 5000" round =" 1" />
176
150
</p >
177
151
</div >
178
152
</div >
179
153
</div >
154
+ <div
155
+ style =" position : absolute ; bottom : 0px ; z-index : 0 ;"
156
+ class =" w-full text-base text-white"
157
+ >hello@fttx.gr</div >
180
158
</div >
181
159
</template >
182
160
<script >
@@ -306,7 +284,7 @@ export default {
306
284
const infowindow = new google.maps.InfoWindow ({
307
285
content: d .infoText ,
308
286
});
309
- marker .addListener (" click" , function () {
287
+ marker .addListener (" click" , function () {
310
288
this .showInfo ;
311
289
infowindow .open (this .map , marker);
312
290
});
@@ -343,7 +321,7 @@ export default {
343
321
});
344
322
marker .setVisible (false );
345
323
marker .db = d;
346
- marker .addListener (" click" , function () {
324
+ marker .addListener (" click" , function () {
347
325
ref .infoWindow (marker);
348
326
});
349
327
this .markers .push (marker);
@@ -392,15 +370,15 @@ export default {
392
370
icon: this .markerIcons [format[cab]],
393
371
});
394
372
marker .db = d;
395
- marker .addListener (" click" , function () {
373
+ marker .addListener (" click" , function () {
396
374
ref .infoWindow (marker);
397
375
});
398
376
this .markers .push (marker);
399
377
temp .push (marker);
400
378
});
401
379
}
402
380
this .markerCluster .addMarkers (temp);
403
- this .$toast .success (` Loaded ${ buttons [cab]} cabinets` );
381
+ this .$toast .success (` Loaded ${ format [cab]} cabinets` );
404
382
// this.clusterMyMarkers();
405
383
}
406
384
if (! this .buttons [cab].isOn ) {
@@ -409,7 +387,7 @@ export default {
409
387
ca .setVisible (false );
410
388
});
411
389
this .clusterMyMarkers (" clear" );
412
- this .$toast .warning (` Unloaded ${ buttons [cab]} cabinets` );
390
+ this .$toast .warning (` Unloaded ${ format [cab]} cabinets` );
413
391
}
414
392
},
415
393
infoWindow (marker ) {
@@ -589,14 +567,8 @@ export default {
589
567
}
590
568
591
569
return {
592
- lat: this .map
593
- .getCenter ()
594
- .lat ()
595
- .toFixed (4 ),
596
- lng: this .map
597
- .getCenter ()
598
- .lng ()
599
- .toFixed (4 ),
570
+ lat: this .map .getCenter ().lat ().toFixed (4 ),
571
+ lng: this .map .getCenter ().lng ().toFixed (4 ),
600
572
};
601
573
},
602
574
},
0 commit comments