|
115 | 115 |
|
116 | 116 | background-color: transparent; |
117 | 117 | } |
| 118 | + |
| 119 | + /* overlay */ |
| 120 | + .overlay { |
| 121 | + display: none; |
| 122 | + position: absolute; |
| 123 | + top: 20px; |
| 124 | + left: 70px; |
| 125 | + background: rgba(255, 255, 255, 0.95); |
| 126 | + border-radius: 10px; |
| 127 | + padding: 15px; |
| 128 | + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55); |
| 129 | + max-width: 300px; |
| 130 | + max-height: 400px; |
| 131 | + overflow-y: auto; |
| 132 | + z-index: 1000; |
| 133 | + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; |
| 134 | + } |
| 135 | + |
| 136 | + .overlay h3 { |
| 137 | + margin: 0 0 15px 0; |
| 138 | + font-size: 16px; |
| 139 | + color: #333; |
| 140 | + text-align: center; |
| 141 | + border-bottom: 2px solid #007AFF; |
| 142 | + padding-bottom: 8px; |
| 143 | + } |
| 144 | + |
| 145 | + .contact-item { |
| 146 | + display: flex; |
| 147 | + align-items: center; |
| 148 | + margin-bottom: 5px; |
| 149 | + padding: 8px; |
| 150 | + } |
| 151 | + |
| 152 | + .contact-color { |
| 153 | + width: 12px; |
| 154 | + height: 12px; |
| 155 | + border-radius: 50%; |
| 156 | + margin-right: 10px; |
| 157 | + border: 2px solid #fff; |
| 158 | + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); |
| 159 | + } |
| 160 | + |
| 161 | + .contact-name { |
| 162 | + flex: 1; |
| 163 | + font-size: 14px; |
| 164 | + color: #333; |
| 165 | + font-weight: 500; |
| 166 | + } |
| 167 | + |
| 168 | + .contact-time { |
| 169 | + font-size: 12px; |
| 170 | + color: #666; |
| 171 | + margin: 0 8px; |
| 172 | + white-space: nowrap; |
| 173 | + } |
| 174 | + |
| 175 | + .item-button { |
| 176 | + background: #60a1574a; |
| 177 | + color: white; |
| 178 | + border: none; |
| 179 | + border-radius: 50%; |
| 180 | + font-size: 12px; |
| 181 | + cursor: pointer; |
| 182 | + transition: background-color 0.2s; |
| 183 | + margin-left: 5px; |
| 184 | + height: 32px; |
| 185 | + width: 32px; |
| 186 | + } |
| 187 | + |
| 188 | + .item-button:hover { |
| 189 | + background: #60a1578b; |
| 190 | + } |
| 191 | + |
| 192 | + .no-items { |
| 193 | + text-align: center; |
| 194 | + color: #666; |
| 195 | + font-style: italic; |
| 196 | + padding: 20px; |
| 197 | + } |
| 198 | + |
| 199 | + .toggle-overlay { |
| 200 | + position: absolute; |
| 201 | + top: 20px; |
| 202 | + left: 20px; |
| 203 | + background: rgba(255, 255, 255, 0.9); |
| 204 | + border: none; |
| 205 | + border-radius: 50%; |
| 206 | + width: 40px; |
| 207 | + height: 40px; |
| 208 | + font-size: 18px; |
| 209 | + cursor: pointer; |
| 210 | + z-index: 1001; |
| 211 | + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55); |
| 212 | + transition: all 0.2s; |
| 213 | + } |
| 214 | + |
| 215 | + .toggle-overlay:hover { |
| 216 | + background: rgba(255, 255, 255, 1); |
| 217 | + transform: scale(1.05); |
| 218 | + } |
| 219 | + |
| 220 | + .overlay-hidden .overlay { |
| 221 | + display: none; |
| 222 | + } |
| 223 | + |
| 224 | + /* POI overlay specific styles */ |
| 225 | + .poi-toggle { |
| 226 | + top: 70px; |
| 227 | + } |
| 228 | + |
| 229 | + .poi-overlay { |
| 230 | + top: 70px; |
| 231 | + } |
| 232 | + |
118 | 233 | </style> |
119 | 234 | </head> |
120 | 235 |
|
121 | 236 | <body> |
122 | 237 | <div id="map"></div> |
| 238 | + <!-- Toggle button for overlay --> |
| 239 | + <button class="toggle-overlay" id="toggleOverlay" title="Toggle contacts list">👥</button> |
| 240 | + <!-- POI toggle button --> |
| 241 | + <button class="toggle-overlay poi-toggle" id="togglePoiOverlay" title="Toggle POI list">📍</button> |
| 242 | + <!-- Contacts overlay --> |
| 243 | + <div class="overlay" id="contactsOverlay"> |
| 244 | + <h3>Contacts</h3> |
| 245 | + <div id="contactsList"> |
| 246 | + <div class="no-items">No contacts yet</div> |
| 247 | + </div> |
| 248 | + </div> |
| 249 | + <!-- POI overlay --> |
| 250 | + <div class="overlay poi-overlay" id="poiOverlay" style="left: 70px;"> |
| 251 | + <h3>Points of Interest</h3> |
| 252 | + <div id="poiList"> |
| 253 | + <div class="no-items">No POIs yet</div> |
| 254 | + </div> |
| 255 | + </div> |
123 | 256 | <script src="index.js"></script> |
124 | 257 | </body> |
125 | 258 |
|
|
0 commit comments