File size: 1,880 Bytes
50c0328
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
body {
  display: flex;
  margin: 0;
  padding: 0;
  height: 100vh;
  flex-direction: column;
}

#map {
  flex: 1;
  height: 60vh;
  position: relative;
}

#controls {
  padding: 20px;
  box-sizing: border-box;
}

#info, #modalInfo {
  overflow-y: auto;
  max-height: 40vh; /* 通用最大高度 */
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  background-color: #f9f9f9;
}

/* 桌面版表格高度 */
@media (min-width: 769px) {
  #info {
    max-height: 20vh; /* 桌面版最大高度 */
  }
}

.legend {
  background: white;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  line-height: 1.5em;
  color: #555;
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  pointer-events: none;
}

@media (max-width: 768px) {
  #map {
    height: 50vh;
  }

  #searchButton {
    display: none;
  }

  #showTableButton {
    display: none; /* 隱藏顯示表格按鈕 */
  }

  #info {
    display: block; /* 顯示表格 */
    max-height: 30vh; /* 限制表格高度 */
  }

  #latInput, #lngInput, label[for="latInput"], label[for="lngInput"] {
    display: none;
  }

  #legend {
    display: none; /* 隱藏右下角圖例 */
  }
}

@keyframes highlight {
  0% { transform: scale(1); }
  50% { transform: scale(1.5); }
  100% { transform: scale(1); }
}

#info table, #modalInfo table {
  width: 100%;
  margin-top: 10px;
}

#info th, #info td, #modalInfo th, #modalInfo td {
  text-align: left;
  padding: 8px;
}

#info th, #modalInfo th {
  background-color: #f2f2f2;
}

.poi-row {
  cursor: pointer;
}

.poi-row:hover {
  background-color: #e0e0e0;
}

.poi-row:active {
  background-color: #b0b0b0;
}

.custom-icon div {
  display: inline-block;
  border: 1px solid #555;
  box-shadow: 0 0 2px rgba(0,0,0,0.5);
}

.custom-icon .highlight {
  animation: highlight 0.6s ease-out;
  border: 2px solid yellow;
}