2023-07-03 19:26:02 -05:00
|
|
|
import TileLayer from 'ol/layer/Tile';
|
|
|
|
import OSM from 'ol/source/OSM';
|
2024-02-02 03:02:13 -06:00
|
|
|
import StadiaMaps from 'ol/source/StadiaMaps.js';
|
2023-07-03 19:26:02 -05:00
|
|
|
|
2023-07-24 23:17:18 -05:00
|
|
|
import chandlerLayer from './chandler/layer.js';
|
2024-02-03 00:28:31 -06:00
|
|
|
import amtrakRoutesLayer from './amtrak-routes/layer.js';
|
|
|
|
import amtrakLiveLayer from './amtrak-live/layer';
|
2024-02-01 01:10:18 -06:00
|
|
|
import viarailLayer from './viarail/layer.js';
|
2023-07-03 19:26:02 -05:00
|
|
|
import arenasLayer from './nhl-arenas/layer.js';
|
2023-07-25 17:42:31 -05:00
|
|
|
import bikepackingLayer from './bikepacking/layer.js';
|
2023-07-25 18:13:39 -05:00
|
|
|
import chains from './chains/index.js';
|
2023-07-25 21:34:19 -05:00
|
|
|
import census_bureau from './census-bureau/index.js';
|
2023-07-25 22:14:34 -05:00
|
|
|
import states from './states/index.js';
|
2023-07-28 13:15:45 -05:00
|
|
|
import national_land from './national-land/index.js';
|
2023-08-19 13:53:12 -05:00
|
|
|
import cellular from './cellular.js';
|
2023-08-27 16:33:51 -05:00
|
|
|
import light_pollution from './light_pollution.js';
|
2023-08-27 17:39:55 -05:00
|
|
|
import state_land from './state-land/index.js';
|
2023-09-01 22:19:05 -05:00
|
|
|
import trips from './trips/index.js';
|
2024-01-29 19:28:41 -06:00
|
|
|
import dot_cams from './dot-cams/index.js';
|
2023-07-03 19:26:02 -05:00
|
|
|
|
|
|
|
const layerCategories = [
|
2023-07-25 18:13:39 -05:00
|
|
|
{ // Base maps
|
2023-07-03 19:26:02 -05:00
|
|
|
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({
|
2024-02-02 03:02:13 -06:00
|
|
|
source: new StadiaMaps({
|
|
|
|
layer: 'stamen_watercolor',
|
2023-07-03 19:46:22 -05:00
|
|
|
}),
|
|
|
|
}),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Stamen Toner (Raster)",
|
|
|
|
layer: new TileLayer({
|
2024-02-02 03:02:13 -06:00
|
|
|
source: new StadiaMaps({
|
|
|
|
layer: 'stamen_toner',
|
2023-07-03 19:46:22 -05:00
|
|
|
}),
|
|
|
|
}),
|
|
|
|
},
|
2023-07-03 19:26:02 -05:00
|
|
|
],
|
|
|
|
},
|
2023-07-25 18:13:39 -05:00
|
|
|
{ // Misc
|
|
|
|
name: "Misc",
|
2023-07-03 19:26:02 -05:00
|
|
|
layers: [
|
2023-07-24 23:17:18 -05:00
|
|
|
{
|
|
|
|
name: "Chandler",
|
|
|
|
enabled: true,
|
|
|
|
layer: chandlerLayer,
|
|
|
|
},
|
2023-07-03 19:26:02 -05:00
|
|
|
{
|
|
|
|
name: "Amtrak Routes",
|
2024-02-03 00:28:31 -06:00
|
|
|
layer: amtrakRoutesLayer,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Amtrak Trains (live-ish)",
|
|
|
|
layer: amtrakLiveLayer,
|
2023-07-03 19:26:02 -05:00
|
|
|
},
|
2024-02-01 01:10:18 -06:00
|
|
|
{
|
|
|
|
name: "Via Rail Routes",
|
|
|
|
layer: viarailLayer,
|
|
|
|
},
|
2023-07-03 19:26:02 -05:00
|
|
|
{
|
|
|
|
name: "NHL Arenas",
|
|
|
|
layer: arenasLayer,
|
|
|
|
},
|
2023-07-25 17:42:31 -05:00
|
|
|
{
|
|
|
|
name: "Bikepacking.com Routes",
|
|
|
|
layer: bikepackingLayer,
|
|
|
|
},
|
2023-07-03 19:26:02 -05:00
|
|
|
]
|
2023-07-25 18:13:39 -05:00
|
|
|
},
|
2024-01-29 19:28:41 -06:00
|
|
|
dot_cams,
|
2023-09-01 22:19:05 -05:00
|
|
|
trips,
|
2023-07-25 21:34:19 -05:00
|
|
|
chains,
|
|
|
|
census_bureau,
|
2023-07-25 22:14:34 -05:00
|
|
|
states,
|
2023-07-28 13:15:45 -05:00
|
|
|
national_land,
|
2023-08-27 17:39:55 -05:00
|
|
|
state_land,
|
2023-08-19 13:53:12 -05:00
|
|
|
cellular,
|
2023-08-27 16:33:51 -05:00
|
|
|
light_pollution,
|
2023-07-03 19:26:02 -05:00
|
|
|
];
|
|
|
|
|
|
|
|
export default layerCategories;
|