From 9d4f58472d00558e809cd43642259ba109e25037 Mon Sep 17 00:00:00 2001
From: Catalin Mititiuc
Date: Thu, 16 May 2024 23:11:05 -0700
Subject: WIP: Buildings
---
src/index.js | 2 ++
1 file changed, 2 insertions(+)
(limited to 'src')
diff --git a/src/index.js b/src/index.js
index 3710843..b90c579 100644
--- a/src/index.js
+++ b/src/index.js
@@ -74,6 +74,7 @@ function load() {
linkEl.setAttribute('rel', 'stylesheet');
linkEl.setAttribute('href', 'http://localhost:8080/assets/css/map.css');
linkEl.setAttribute('type', 'text/css');
+
linkEl.onload = function (e) {
console.log('map.css loaded');
@@ -86,6 +87,7 @@ function load() {
scriptEl.setAttribute('href', 'http://localhost:8080/map.js');
}
};
+
svg.prepend(linkEl);
this.style.opacity = 1;
--
cgit v1.2.3