Compare commits
12 Commits
release/r2
...
7e7f7d59a0
| Author | SHA1 | Date | |
|---|---|---|---|
| 7e7f7d59a0 | |||
| 60c7e0ef09 | |||
| 93c15d8640 | |||
| 2e5e998d8a | |||
| ecdeaecfde | |||
| 137b4a2761 | |||
| 5989af8ce1 | |||
| a659f47a87 | |||
| 6576b0a2b5 | |||
| b585e447f0 | |||
| 723ec43eee | |||
| 9c3564f9ab |
2
Dockerfile
Normal file
2
Dockerfile
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
FROM nginx
|
||||||
|
COPY www /usr/share/nginx/html
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
You should have received a copy of the GNU General Public License along
|
You should have received a copy of the GNU General Public License along
|
||||||
with this program. If not, see http://www.gnu.org/licenses/.
|
with this program. If not, see http://www.gnu.org/licenses/.
|
||||||
|
|
||||||
Version r20211017.1 (2021-10-17)
|
Version r20211017.2 (2021-10-17)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* adding row(s) to a table and format date strings afterwards */
|
/* adding row(s) to a table and format date strings afterwards */
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
You should have received a copy of the GNU General Public License along
|
You should have received a copy of the GNU General Public License along
|
||||||
with this program. If not, see http://www.gnu.org/licenses/.
|
with this program. If not, see http://www.gnu.org/licenses/.
|
||||||
|
|
||||||
Version r20211017.1 (2021-10-17)
|
Version r20211017.2 (2021-10-17)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* adding row(s) to a table and format date strings afterwards */
|
/* adding row(s) to a table and format date strings afterwards */
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
|
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
|
||||||
<!-- r20211017.1 (2021-10-17) -->
|
<!-- Version VVVVV -->
|
||||||
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='de' lang='de'>
|
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='de' lang='de'>
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
|
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
|
||||||
@@ -36,6 +36,8 @@
|
|||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet-providers/1.10.1/leaflet-providers.min.js" integrity="sha512-Ifxj89Ujg72gC/psKB9ystryRYiopmDud2EmNTKC9kz192aQwDKVK1FzWsyPc37tgU0UmRQlNnBM++ZnwIXJ9Q==" crossorigin="anonymous"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet-providers/1.10.1/leaflet-providers.min.js" integrity="sha512-Ifxj89Ujg72gC/psKB9ystryRYiopmDud2EmNTKC9kz192aQwDKVK1FzWsyPc37tgU0UmRQlNnBM++ZnwIXJ9Q==" crossorigin="anonymous"></script>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/leaflet.browser.print@1.0.5/dist/leaflet.browser.print.min.js" integrity="sha256-1MQvHEnVXSKwR+XIVswRSBla/B5ohkp5+HJtritIkgE=" crossorigin="anonymous"></script>
|
<script src="https://cdn.jsdelivr.net/npm/leaflet.browser.print@1.0.5/dist/leaflet.browser.print.min.js" integrity="sha256-1MQvHEnVXSKwR+XIVswRSBla/B5ohkp5+HJtritIkgE=" crossorigin="anonymous"></script>
|
||||||
|
|
||||||
|
<script src="https://www.mapquestapi.com/sdk/leaflet/v2.2/mq-map.js?key=RPOPuz3lA2GGBtVpEU0ugxtVoGba53Dt"></script>
|
||||||
|
|
||||||
<!-- Map, Events & Stations -->
|
<!-- Map, Events & Stations -->
|
||||||
<script type="text/javascript" src="misc.js"></script>
|
<script type="text/javascript" src="misc.js"></script>
|
||||||
<script type="text/javascript" src="geolocation.js"></script>
|
<script type="text/javascript" src="geolocation.js"></script>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
|
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
|
||||||
<!-- r20211017.1 (2021-10-17) -->
|
<!-- Version VVVVV -->
|
||||||
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='de' lang='de'>
|
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='de' lang='de'>
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
|
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
|
||||||
@@ -36,6 +36,8 @@
|
|||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet-providers/1.10.1/leaflet-providers.min.js" integrity="sha512-Ifxj89Ujg72gC/psKB9ystryRYiopmDud2EmNTKC9kz192aQwDKVK1FzWsyPc37tgU0UmRQlNnBM++ZnwIXJ9Q==" crossorigin="anonymous"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet-providers/1.10.1/leaflet-providers.min.js" integrity="sha512-Ifxj89Ujg72gC/psKB9ystryRYiopmDud2EmNTKC9kz192aQwDKVK1FzWsyPc37tgU0UmRQlNnBM++ZnwIXJ9Q==" crossorigin="anonymous"></script>
|
||||||
<script src="https://cdn.jsdelivr.net/npm/leaflet.browser.print@1.0.5/dist/leaflet.browser.print.min.js" integrity="sha256-1MQvHEnVXSKwR+XIVswRSBla/B5ohkp5+HJtritIkgE=" crossorigin="anonymous"></script>
|
<script src="https://cdn.jsdelivr.net/npm/leaflet.browser.print@1.0.5/dist/leaflet.browser.print.min.js" integrity="sha256-1MQvHEnVXSKwR+XIVswRSBla/B5ohkp5+HJtritIkgE=" crossorigin="anonymous"></script>
|
||||||
|
|
||||||
|
<script src="https://www.mapquestapi.com/sdk/leaflet/v2.2/mq-map.js?key=RPOPuz3lA2GGBtVpEU0ugxtVoGba53Dt"></script>
|
||||||
|
|
||||||
<!-- Map, Events & Stations -->
|
<!-- Map, Events & Stations -->
|
||||||
<script type="text/javascript" src="misc.js"></script>
|
<script type="text/javascript" src="misc.js"></script>
|
||||||
<script type="text/javascript" src="geolocation.js"></script>
|
<script type="text/javascript" src="geolocation.js"></script>
|
||||||
@@ -154,7 +156,9 @@
|
|||||||
<p class="table-caption">Download as <a id="stations-csv-link" href="link" download="stations.csv">CSV file</a>.</p>
|
<p class="table-caption">Download as <a id="stations-csv-link" href="link" download="stations.csv">CSV file</a>.</p>
|
||||||
</div>
|
</div>
|
||||||
<!-- More -->
|
<!-- More -->
|
||||||
<div class="tab" id="moretab"><!--include virtual="more.html.de" --></div>
|
<div class="tab more_de" id="moretab">
|
||||||
|
<p>Loading text ...</p>
|
||||||
|
</div>
|
||||||
<!-- Info -->
|
<!-- Info -->
|
||||||
<div class="tab" id="infotab">
|
<div class="tab" id="infotab">
|
||||||
<div id="infoaccordion">
|
<div id="infoaccordion">
|
||||||
|
|||||||
26
www/map.js
26
www/map.js
@@ -19,7 +19,7 @@
|
|||||||
You should have received a copy of the GNU General Public License along
|
You should have received a copy of the GNU General Public License along
|
||||||
with this program. If not, see https://www.gnu.org/licenses/.
|
with this program. If not, see https://www.gnu.org/licenses/.
|
||||||
|
|
||||||
Version r20211017.1 (2021-10-17)
|
Version VVVVV
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* add station marker */
|
/* add station marker */
|
||||||
@@ -139,10 +139,14 @@ function initMapLink() {
|
|||||||
**********************************************************************/
|
**********************************************************************/
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
// create a map in the "map" div, set the view to a given place and zoom
|
map = L.map('map', {
|
||||||
map = L.map('map', { zoomControl: false, worldCopyJump: true }).setView(config['map']['centerDefault'], config['map']['zoomDefault']);
|
center: config['map']['centerDefault'],
|
||||||
|
zoom: config['map']['zoomDefault'],
|
||||||
|
zoomControl: false,
|
||||||
|
worldCopyJump: true
|
||||||
|
});
|
||||||
|
|
||||||
// create baselayer
|
// change baselayer if mapquest is not requested
|
||||||
switch ( config['map']['baselayer'] ) {
|
switch ( config['map']['baselayer'] ) {
|
||||||
case 'esrigray': // add ESRI Grayscale World Map (neither city nor road names)
|
case 'esrigray': // add ESRI Grayscale World Map (neither city nor road names)
|
||||||
L.tileLayer.provider('Esri.WorldGrayCanvas').addTo(map);
|
L.tileLayer.provider('Esri.WorldGrayCanvas').addTo(map);
|
||||||
@@ -153,14 +157,18 @@ $(document).ready(function() {
|
|||||||
case 'opentopo': // add OpenTopoMap tile layer
|
case 'opentopo': // add OpenTopoMap tile layer
|
||||||
L.tileLayer.provider('OpenTopoMap').addTo(map);
|
L.tileLayer.provider('OpenTopoMap').addTo(map);
|
||||||
break;
|
break;
|
||||||
case 'osmde': // add OpenStreetMap.DE tile layer, default
|
case 'mapnik': // add OpenStreetMap.Mapnik tile layer
|
||||||
L.tileLayer.provider('OpenStreetMap.DE').addTo(map);
|
|
||||||
break;
|
|
||||||
case 'mapnik': // add OpenStreetMap.Mapni tile layer
|
|
||||||
L.tileLayer.provider('OpenStreetMap.Mapnik').addTo(map);
|
L.tileLayer.provider('OpenStreetMap.Mapnik').addTo(map);
|
||||||
break;
|
break;
|
||||||
|
case 'topplus': // add TopPlus tile layer (https://gdz.bkg.bund.de/index.php/default/webdienste/topplus-produkte/wmts-topplusopen-wmts-topplus-open.html)
|
||||||
|
L.tileLayer('https://sgx.geodatenzentrum.de/wmts_topplus_open/tile/1.0.0/web/default/WEBMERCATOR/{z}/{y}/{x}.png',
|
||||||
|
{attribution: '© Bundesamt für Kartographie und Geodäsie ('+jahr+'), Datenquellen: <a href="http://sg.geodatenzentrum.de/web_public/Datenquellen_TopPlus_Open.pdf">Geodatenzentrum</a>'}).addTo(map);
|
||||||
|
break;
|
||||||
|
case 'mapquest':
|
||||||
|
MQ.mapLayer().addTo(map);
|
||||||
|
break;
|
||||||
default: // use OpenStreetMap.DE as default
|
default: // use OpenStreetMap.DE as default
|
||||||
L.tileLayer.provider(config['map']['baselayer']).addTo(map);
|
L.tileLayer.provider('OpenStreetMap.DE').addTo(map);
|
||||||
};
|
};
|
||||||
|
|
||||||
// add controls
|
// add controls
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
You should have received a copy of the GNU General Public License along
|
You should have received a copy of the GNU General Public License along
|
||||||
with this program. If not, see https://www.gnu.org/licenses/.
|
with this program. If not, see https://www.gnu.org/licenses/.
|
||||||
|
|
||||||
Version r20211017.1 (2021-10-17)
|
Version VVVVV
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* add station marker */
|
/* add station marker */
|
||||||
@@ -139,11 +139,14 @@ function initMapLink() {
|
|||||||
**********************************************************************/
|
**********************************************************************/
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
// create a map in the "map" div, set the view to a given place and zoom
|
map = L.map('map', {
|
||||||
map = L.map('map', { zoomControl: false, worldCopyJump: true }).setView(config['map']['centerDefault'], config['map']['zoomDefault']);
|
center: config['map']['centerDefault'],
|
||||||
|
zoom: config['map']['zoomDefault'],
|
||||||
|
zoomControl: false,
|
||||||
|
worldCopyJump: true
|
||||||
|
});
|
||||||
|
|
||||||
|
// change baselayer if mapquest is not requested
|
||||||
// create baselayer
|
|
||||||
switch ( config['map']['baselayer'] ) {
|
switch ( config['map']['baselayer'] ) {
|
||||||
case 'esrigray': // add ESRI Grayscale World Map (neither city nor road names)
|
case 'esrigray': // add ESRI Grayscale World Map (neither city nor road names)
|
||||||
L.tileLayer.provider('Esri.WorldGrayCanvas').addTo(map);
|
L.tileLayer.provider('Esri.WorldGrayCanvas').addTo(map);
|
||||||
@@ -154,15 +157,20 @@ $(document).ready(function() {
|
|||||||
case 'opentopo': // add OpenTopoMap tile layer
|
case 'opentopo': // add OpenTopoMap tile layer
|
||||||
L.tileLayer.provider('OpenTopoMap').addTo(map);
|
L.tileLayer.provider('OpenTopoMap').addTo(map);
|
||||||
break;
|
break;
|
||||||
case 'osmde': // add OpenStreetMap.DE tile layer, default
|
case 'mapnik': // add OpenStreetMap.Mapnik tile layer
|
||||||
L.tileLayer.provider('OpenStreetMap.DE').addTo(map);
|
|
||||||
break;
|
|
||||||
case 'mapnik': // add OpenStreetMap.Mapni tile layer
|
|
||||||
L.tileLayer.provider('OpenStreetMap.Mapnik').addTo(map);
|
L.tileLayer.provider('OpenStreetMap.Mapnik').addTo(map);
|
||||||
break;
|
break;
|
||||||
|
case 'topplus': // add TopPlus tile layer (https://gdz.bkg.bund.de/index.php/default/webdienste/topplus-produkte/wmts-topplusopen-wmts-topplus-open.html)
|
||||||
|
L.tileLayer('https://sgx.geodatenzentrum.de/wmts_topplus_open/tile/1.0.0/web/default/WEBMERCATOR/{z}/{y}/{x}.png',
|
||||||
|
{attribution: '© Federal Agency for Cartography and Geodesy ('+jahr+'), Datasource: <a href="http://sg.geodatenzentrum.de/web_public/Datenquellen_TopPlus_Open.pdf">Geodatenzentrum</a>'}).addTo(map);
|
||||||
|
break;
|
||||||
|
case 'mapquest':
|
||||||
|
MQ.mapLayer().addTo(map);
|
||||||
|
break;
|
||||||
default: // use OpenStreetMap.DE as default
|
default: // use OpenStreetMap.DE as default
|
||||||
L.tileLayer.provider(config['map']['baselayer']).addTo(map);
|
L.tileLayer.provider('OpenStreetMap.DE').addTo(map);
|
||||||
};
|
};
|
||||||
|
|
||||||
// add controls
|
// add controls
|
||||||
new L.Control.Zoom({ position: 'topright' }).addTo(map);
|
new L.Control.Zoom({ position: 'topright' }).addTo(map);
|
||||||
new L.control.scale({position: 'bottomright', imperial: false}).addTo(map);
|
new L.control.scale({position: 'bottomright', imperial: false}).addTo(map);
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
You should have received a copy of the GNU General Public License along
|
You should have received a copy of the GNU General Public License along
|
||||||
with this program. If not, see http://www.gnu.org/licenses/.
|
with this program. If not, see http://www.gnu.org/licenses/.
|
||||||
|
|
||||||
Version r20211017.1 (2021-10-17)
|
Version VVVVV
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* calculate marker radius from magnitude
|
/* calculate marker radius from magnitude
|
||||||
@@ -81,6 +81,7 @@ function parseQueryString() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* create global vars */
|
/* create global vars */
|
||||||
|
var jahr = new Date().getFullYear();
|
||||||
var map;
|
var map;
|
||||||
var openMarkerID;
|
var openMarkerID;
|
||||||
var eventTable = {};
|
var eventTable = {};
|
||||||
@@ -101,7 +102,7 @@ var config = {
|
|||||||
markerOpacity: 0.4,
|
markerOpacity: 0.4,
|
||||||
markerColor: 'blue',
|
markerColor: 'blue',
|
||||||
markerColorH: 'red',
|
markerColorH: 'red',
|
||||||
minMag: 1.2,
|
minMag: 0.7,
|
||||||
minMagDelta: 0.1,
|
minMagDelta: 0.1,
|
||||||
typeWhitelist: ['earthquake', 'induced or triggered event', 'controlled explosion'],
|
typeWhitelist: ['earthquake', 'induced or triggered event', 'controlled explosion'],
|
||||||
// typeWhitelist: ['earthquake', 'induced or triggered event', 'controlled explosion', 'nuclear explosion'],
|
// typeWhitelist: ['earthquake', 'induced or triggered event', 'controlled explosion', 'nuclear explosion'],
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
You should have received a copy of the GNU General Public License along
|
You should have received a copy of the GNU General Public License along
|
||||||
with this program. If not, see http://www.gnu.org/licenses/.
|
with this program. If not, see http://www.gnu.org/licenses/.
|
||||||
|
|
||||||
Version r20211017.1 (2021-10-17)
|
Version r20211017.2 (2021-10-17)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Load the stations using ajax */
|
/* Load the stations using ajax */
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
You should have received a copy of the GNU General Public License along
|
You should have received a copy of the GNU General Public License along
|
||||||
with this program. If not, see http://www.gnu.org/licenses/.
|
with this program. If not, see http://www.gnu.org/licenses/.
|
||||||
|
|
||||||
Version r20211017.1 (2021-10-17)
|
Version r20211017.2 (2021-10-17)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Load the stations using ajax */
|
/* Load the stations using ajax */
|
||||||
|
|||||||
Reference in New Issue
Block a user