maps.chandlerswift.com/layers/index.js

93 lines
2.6 KiB
JavaScript
Raw Normal View History

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';
import chandlerLayer from './chandler/layer.js';
import amtrakLayer from './amtrak/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';
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 Stamen({
layer: 'watercolor',
}),
}),
},
{
name: "Stamen Toner (Raster)",
layer: new TileLayer({
source: new Stamen({
layer: 'toner',
}),
}),
},
],
},
2023-07-25 18:13:39 -05:00
{ // Misc
name: "Misc",
layers: [
{
name: "Chandler",
enabled: true,
layer: chandlerLayer,
},
{
name: "Amtrak Routes",
layer: amtrakLayer,
},
{
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-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;