aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-09-09 14:59:06 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-09-10 17:20:55 +0800
commit0d62918e28ab68a9429f736409e6c43606f798af (patch)
treeb7d71d9a1f2545709120a499669bc553a45a051f /src
parent330cf0e28922f1b4e46d67c7dbd06d79a88c104f (diff)
style: Add comments
Diffstat (limited to 'src')
-rw-r--r--src/css/dumbymap.css2
-rw-r--r--src/dumbymap.mjs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/css/dumbymap.css b/src/css/dumbymap.css
index 3f522bb..d31c97e 100644
--- a/src/css/dumbymap.css
+++ b/src/css/dumbymap.css
@@ -179,7 +179,7 @@
179 position: absolute; 179 position: absolute;
180 right: 10px; 180 right: 10px;
181 bottom: 10px; 181 bottom: 10px;
182 /* FIXME */ 182 /* FIXME Hide nav at proper time */
183 display: none; 183 display: none;
184 184
185 padding: 0.5rem; 185 padding: 0.5rem;
diff --git a/src/dumbymap.mjs b/src/dumbymap.mjs
index a6029a5..b95e7a9 100644
--- a/src/dumbymap.mjs
+++ b/src/dumbymap.mjs
@@ -318,7 +318,7 @@ export const generateMaps = async (container) => {
318 if (focusArea.contains(mapPlaceholder)) { 318 if (focusArea.contains(mapPlaceholder)) {
319 const mapContainer = container.querySelector('.map-container.focus') ?? container.querySelector('.map-container') 319 const mapContainer = container.querySelector('.map-container.focus') ?? container.querySelector('.map-container')
320 mapPlaceholder.innerHTML = `<div>Placeholder</div>` 320 mapPlaceholder.innerHTML = `<div>Placeholder</div>`
321 // TODO 321 // TODO Get snapshot image
322 // mapPlaceholder.src = map.map.getCanvas().toDataURL() 322 // mapPlaceholder.src = map.map.getCanvas().toDataURL()
323 mapContainer.parentElement?.replaceChild(mapPlaceholder, mapContainer) 323 mapContainer.parentElement?.replaceChild(mapPlaceholder, mapContainer)
324 focusArea.appendChild(mapContainer) 324 focusArea.appendChild(mapContainer)