Skip to content

Open Infrastructure Map, a view of infrastructure data in OpenStreetMap

Tidy up styles

Russ Garrett6f2711e784d5
diff --git a/src/index.js b/src/index.js
index 33362a5..c93efc8 100644
--- a/src/index.js
+++ b/src/index.js
@@ -1,6 +1,5 @@
import './index.css';
import mapboxgl from 'mapbox-gl';
-import map_style from './style.json';
import { mount } from 'redom';
@@ -8,11 +7,12 @@ import EditButton from './editbutton.js';
import InfoBox from './infobox.js';
import InfoPopup from './infopopup.js';
-import style_base from './style_base.js';
-import style_oim_power from './style_oim_power.js';
-import style_oim_telecoms from './style_oim_telecoms.js';
-import style_oim_petroleum from './style_oim_petroleum.js';
-import style_oim_water from './style_oim_water.js';
+import map_style from './style/style.json';
+import style_base from './style/style_base.js';
+import style_oim_power from './style/style_oim_power.js';
+import style_oim_telecoms from './style/style_oim_telecoms.js';
+import style_oim_petroleum from './style/style_oim_petroleum.js';
+import style_oim_water from './style/style_oim_water.js';
function init() {
if (!mapboxgl.supported({failIfMajorPerformanceCaveat: true})) {
diff --git a/src/style.json b/src/style/style.json
similarity index 100%
rename from src/style.json
rename to src/style/style.json
diff --git a/src/style_base.js b/src/style/style_base.js
similarity index 100%
rename from src/style_base.js
rename to src/style/style_base.js
diff --git a/src/style_oim_common.js b/src/style/style_oim_common.js
similarity index 100%
rename from src/style_oim_common.js
rename to src/style/style_oim_common.js
diff --git a/src/style_oim_petroleum.js b/src/style/style_oim_petroleum.js
similarity index 100%
rename from src/style_oim_petroleum.js
rename to src/style/style_oim_petroleum.js
diff --git a/src/style_oim_power.js b/src/style/style_oim_power.js
similarity index 100%
rename from src/style_oim_power.js
rename to src/style/style_oim_power.js
diff --git a/src/style_oim_telecoms.js b/src/style/style_oim_telecoms.js
similarity index 100%
rename from src/style_oim_telecoms.js
rename to src/style/style_oim_telecoms.js
diff --git a/src/style_oim_water.js b/src/style/style_oim_water.js
similarity index 100%
rename from src/style_oim_water.js
rename to src/style/style_oim_water.js