Commit 1d645993 authored by dagal's avatar dagal
Browse files

Thunderforest wms

parent ca713044
......@@ -92,9 +92,17 @@ let map = L.map('map', {
}).setView([40.42, -3.70], 13);
let canvasRenderer = L.canvas({ padding: 0.2 });
/*
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map);
*/
L.tileLayer('https://{s}.tile.thunderforest.com/transport/{z}/{x}/{y}.png?apikey={apikey}', {
attribution: '&copy; <a href="http://www.thunderforest.com/">Thunderforest</a>, &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',
apikey: process.env.THUNDERFOREST_KEY,
maxZoom: 22
}).addTo(map);
let stopLayer = L.geoJSON(null, {
onEachFeature: function(feature, layer) {
......
......@@ -3,6 +3,8 @@
"version": "0.4.0",
"main": "bundle.js",
"dependencies": {
"dotenv": "^8.0.0",
"dotenv-webpack": "^1.7.0",
"leaflet": "^1.4.0",
"leaflet-contextmenu": "git+https://github.com/aratcliffe/Leaflet.contextmenu.git",
"vue": "^2.6.10",
......
let path = require("path");
let VueLoaderPlugin = require("vue-loader/lib/plugin");
let Dotenv = require("dotenv-webpack");
module.exports = {
mode: "development",
......@@ -40,6 +41,7 @@ module.exports = {
extensions: ['*', '.js', '.vue', '.json']
},
plugins: [
new VueLoaderPlugin()
new VueLoaderPlugin(),
new Dotenv()
]
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment