Move chains to their own directory

This commit is contained in:
Chandler Swift 2023-07-25 18:13:39 -05:00
parent f3f7a21645
commit c74edcb8c0
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F
21 changed files with 50 additions and 40 deletions

View file

@ -6,7 +6,7 @@ import {Style} from 'ol/style.js';
import Icon from 'ol/style/Icon.js';
import culversURL from '/data/culvers-data.geojson?url'; // TODO: remove `?url`?
import pinURL from '/layers/culvers/pin.svg?url'; // TODO: remove `?url`?
import pinURL from './pin.svg?url'; // TODO: remove `?url`?
const vectorLayer = new VectorLayer({
source: new VectorSource({

View file

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

38
layers/chains/index.js Normal file
View file

@ -0,0 +1,38 @@
import culversLayer from './culvers/layer.js';
import krispyKremeLayer from './krispy-kreme/layer.js';
import kwikTripLayer from './kwik-trip/layer.js';
import menardsLayer from './menards/layer.js';
import milwaukeeBurgerCompanyLayer from './milwaukee-burger-company/layer.js';
import waffleHouseLayer from './waffle-house/layer.js';
const chains = {
name: "Chains",
layers: [
{
name: "Culver's",
layer: culversLayer,
},
{
name: "Krispy Kreme",
layer: krispyKremeLayer,
},
{
name: "Kwik Trip/Kwik Star",
layer: kwikTripLayer,
},
{
name: "Menards",
layer: menardsLayer,
},
{
name: "Milwaukee Burger Company",
layer: milwaukeeBurgerCompanyLayer,
},
{
name: "Waffle House",
layer: waffleHouseLayer,
},
],
};
export default chains;

View file

@ -6,7 +6,7 @@ import {Style} from 'ol/style.js';
import Icon from 'ol/style/Icon.js';
import waffleHouseURL from '/data/krispy-kreme-data.geojson?url'; // TODO: remove `?url`?
import pinURL from '/layers/krispy-kreme/pin.svg?url'; // TODO: remove `?url`?
import pinURL from './pin.svg?url'; // TODO: remove `?url`?
const vectorLayer = new VectorLayer({
source: new VectorSource({

View file

Before

Width:  |  Height:  |  Size: 851 B

After

Width:  |  Height:  |  Size: 851 B

View file

@ -6,7 +6,7 @@ import {Style} from 'ol/style.js';
import Icon from 'ol/style/Icon.js';
import kwikTripURL from '/data/kwik-trip-data.geojson?url'; // TODO: remove `?url`?
import pinURL from '/layers/kwik-trip/pin.svg?url'; // TODO: remove `?url`?
import pinURL from './pin.svg?url'; // TODO: remove `?url`?
const vectorLayer = new VectorLayer({
source: new VectorSource({

View file

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

View file

@ -6,7 +6,7 @@ import {Style} from 'ol/style.js';
import Icon from 'ol/style/Icon.js';
import menardsURL from '/data/menards-data.geojson?url'; // TODO: remove `?url`?
import pinURL from '/layers/menards/pin.svg?url'; // TODO: remove `?url`?
import pinURL from './pin.svg?url'; // TODO: remove `?url`?
const vectorLayer = new VectorLayer({
source: new VectorSource({

View file

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View file

@ -6,7 +6,7 @@ import {Style} from 'ol/style.js';
import Icon from 'ol/style/Icon.js';
import url from '/data/milwaukee-burger-company-data.geojson?url'; // TODO: remove `?url`?
import pin from '/layers/milwaukee-burger-company/pin.svg?url'; // TODO: remove `?url`?
import pin from './pin.svg?url'; // TODO: remove `?url`?
const vectorLayer = new VectorLayer({
source: new VectorSource({

View file

Before

Width:  |  Height:  |  Size: 848 B

After

Width:  |  Height:  |  Size: 848 B

View file

@ -6,7 +6,7 @@ import {Style} from 'ol/style.js';
import Icon from 'ol/style/Icon.js';
import waffleHouseURL from '/data/waffle-house-data.geojson?url'; // TODO: remove `?url`?
import pinURL from '/layers/waffle-house/pin.svg?url'; // TODO: remove `?url`?
import pinURL from './pin.svg?url'; // TODO: remove `?url`?
const vectorLayer = new VectorLayer({
source: new VectorSource({

View file

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

View file

@ -5,16 +5,11 @@ import Stamen from 'ol/source/Stamen.js';
import chandlerLayer from './chandler/layer.js';
import amtrakLayer from './amtrak/layer.js';
import arenasLayer from './nhl-arenas/layer.js';
import menardsLayer from './menards/layer.js';
import culversLayer from './culvers/layer.js';
import kwikTripLayer from './kwik-trip/layer.js';
import waffleHouseLayer from './waffle-house/layer.js';
import krispyKremeLayer from './krispy-kreme/layer.js';
import milwaukeeBurgerCompanyLayer from './milwaukee-burger-company/layer.js';
import bikepackingLayer from './bikepacking/layer.js';
import chains from './chains/index.js';
const layerCategories = [
{
{ // Base maps
name: "Base maps",
// TODO: include more?
// - [ ] https://mc.bbbike.org/mc/
@ -53,8 +48,8 @@ const layerCategories = [
},
],
},
{
name: "Overlays",
{ // Misc
name: "Misc",
layers: [
{
name: "Chandler",
@ -69,36 +64,13 @@ const layerCategories = [
name: "NHL Arenas",
layer: arenasLayer,
},
{
name: "Menards",
layer: menardsLayer,
},
{
name: "Culver's",
layer: culversLayer,
},
{
name: "Kwik Trip/Kwik Star",
layer: kwikTripLayer,
},
{
name: "Waffle House",
layer: waffleHouseLayer,
},
{
name: "Krispy Kreme",
layer: krispyKremeLayer,
},
{
name: "Milwaukee Burger Company",
layer: milwaukeeBurgerCompanyLayer,
},
{
name: "Bikepacking.com Routes",
layer: bikepackingLayer,
},
]
}
},
chains
];
export default layerCategories;