maps.chandlerswift.com/layers/index.js

85 lines
2.4 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';
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
},
2023-07-25 21:34:19 -05:00
chains,
census_bureau,
2023-07-25 22:14:34 -05:00
states,
national_land,
2023-08-19 13:53:12 -05:00
cellular,
];
export default layerCategories;