maps.chandlerswift.com/layers/index.js

105 lines
3.0 KiB
JavaScript
Raw Normal View History

import TileLayer from 'ol/layer/Tile';
import OSM from 'ol/source/OSM';
import StadiaMaps from 'ol/source/StadiaMaps.js';
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';
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';
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';
2024-03-15 00:09:23 -05:00
import survey_markers from './survey-markers/index.js';
const layerCategories = [
2023-07-25 18:13:39 -05:00
{ // Base maps
name: "Base maps",
2023-07-03 19:46:22 -05:00
// TODO: include more?
// - [ ] https://mc.bbbike.org/mc/
// - [ ] https://www.thunderforest.com/pricing/
layers: [
{
2023-07-03 19:46:22 -05:00
name: "OpenStreetMap Carto (Raster)",
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 StadiaMaps({
layer: 'stamen_watercolor',
2023-07-03 19:46:22 -05:00
}),
}),
},
{
name: "Stamen Toner (Raster)",
layer: new TileLayer({
source: new StadiaMaps({
layer: 'stamen_toner',
2023-07-03 19:46:22 -05:00
}),
}),
},
],
},
2023-07-25 18:13:39 -05:00
{ // Misc
name: "Misc",
layers: [
{
name: "Chandler",
enabled: true,
layer: chandlerLayer,
},
{
name: "Amtrak Routes",
2024-02-03 00:28:31 -06:00
layer: amtrakRoutesLayer,
},
{
name: "Amtrak Trains (live-ish)",
layer: amtrakLiveLayer,
},
2024-02-01 01:10:18 -06:00
{
name: "Via Rail Routes",
layer: viarailLayer,
},
{
name: "NHL Arenas",
layer: arenasLayer,
},
2023-07-25 17:42:31 -05:00
{
name: "Bikepacking.com Routes",
layer: bikepackingLayer,
},
]
2023-07-25 18:13:39 -05:00
},
2024-03-15 00:09:23 -05:00
survey_markers,
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,
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,
];
export default layerCategories;