2023-07-03 19:26:02 -05:00
|
|
|
import TileLayer from 'ol/layer/Tile';
|
|
|
|
import OSM from 'ol/source/OSM';
|
2023-07-03 19:46:22 -05:00
|
|
|
import Stamen from 'ol/source/Stamen.js';
|
2023-07-03 19:26:02 -05:00
|
|
|
|
|
|
|
import amtrakLayer from './amtrak/layer.js';
|
|
|
|
import arenasLayer from './nhl-arenas/layer.js';
|
2023-07-04 00:08:39 -05:00
|
|
|
import menardsLayer from './menards/layer.js';
|
2023-07-04 00:56:31 -05:00
|
|
|
import culversLayer from './culvers/layer.js';
|
2023-07-04 01:18:14 -05:00
|
|
|
import kwikTripLayer from './kwik-trip/layer.js';
|
2023-07-03 19:26:02 -05:00
|
|
|
|
|
|
|
const layerCategories = [
|
|
|
|
{
|
|
|
|
name: "Base maps",
|
2023-07-03 19:46:22 -05:00
|
|
|
// TODO: include more?
|
|
|
|
// - [ ] https://mc.bbbike.org/mc/
|
|
|
|
// - [ ] https://www.thunderforest.com/pricing/
|
2023-07-03 19:26:02 -05:00
|
|
|
layers: [
|
|
|
|
{
|
2023-07-03 19:46:22 -05:00
|
|
|
name: "OpenStreetMap Carto (Raster)",
|
2023-07-03 19:26:02 -05:00
|
|
|
enabled: true,
|
|
|
|
layer: new TileLayer({
|
|
|
|
source: new OSM(),
|
|
|
|
}),
|
|
|
|
},
|
2023-07-03 19:46:22 -05:00
|
|
|
{
|
|
|
|
name: "CyclOSM (Raster)",
|
|
|
|
layer: new TileLayer({
|
|
|
|
source: new OSM({
|
|
|
|
url: "https://a.tile-cyclosm.openstreetmap.fr/cyclosm/{z}/{x}/{y}.png", // TODO: {s}
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Stamen Watercolor (Raster)",
|
|
|
|
layer: new TileLayer({
|
|
|
|
source: new Stamen({
|
|
|
|
layer: 'watercolor',
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Stamen Toner (Raster)",
|
|
|
|
layer: new TileLayer({
|
|
|
|
source: new Stamen({
|
|
|
|
layer: 'toner',
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
},
|
2023-07-03 19:26:02 -05:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Overlays",
|
|
|
|
layers: [
|
|
|
|
{
|
|
|
|
name: "Amtrak Routes",
|
|
|
|
layer: amtrakLayer,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "NHL Arenas",
|
|
|
|
layer: arenasLayer,
|
|
|
|
},
|
2023-07-04 00:08:39 -05:00
|
|
|
{
|
|
|
|
name: "Menards",
|
|
|
|
layer: menardsLayer,
|
|
|
|
},
|
2023-07-04 00:56:31 -05:00
|
|
|
{
|
|
|
|
name: "Culver's",
|
|
|
|
layer: culversLayer,
|
|
|
|
},
|
2023-07-04 01:18:14 -05:00
|
|
|
{
|
|
|
|
name: "Kwik Trip/Kwik Star",
|
|
|
|
layer: kwikTripLayer,
|
|
|
|
}
|
2023-07-03 19:26:02 -05:00
|
|
|
]
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
export default layerCategories;
|