mirror of
https://github.com/owntracks/frontend.git
synced 2026-02-13 20:59:50 +00:00
28 lines
751 B
JavaScript
28 lines
751 B
JavaScript
(() => {
|
|
const endDate = new Date();
|
|
endDate.setUTCHours(0);
|
|
endDate.setUTCMinutes(0);
|
|
endDate.setUTCSeconds(0);
|
|
const startDate = new Date(endDate);
|
|
startDate.setUTCMonth(startDate.getMonth()-1);
|
|
window.defaultConfig = {
|
|
accentColor: '#3388ff',
|
|
startDate,
|
|
endDate,
|
|
map: {
|
|
center: L.latLng(0, 0),
|
|
zoom: 19,
|
|
maxNativeZoom: 19,
|
|
maxZoom: 21,
|
|
url: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
|
|
attribution: '© <a href="https://osm.org/copyright">OpenStreetMap</a> contributors',
|
|
heatmap: {
|
|
max: 20,
|
|
radius: 25,
|
|
blur: 15,
|
|
gradient: null, // https://github.com/mourner/simpleheat/blob/gh-pages/simpleheat.js#L22
|
|
},
|
|
},
|
|
};
|
|
})();
|