This commit is contained in:
Walter Hupfeld 2024-02-18 10:57:42 +01:00
parent 5fd594a103
commit 6cdad9be24
7 changed files with 16 additions and 6 deletions

4
.gitignore vendored
View File

@ -1,4 +1,4 @@
# ignore
admin/shape
config.db.php

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,9 +1,17 @@
<?php
/** *****************************
* Ideenmelder
* Autor: Walter Hupfeld, Hamm
* E-Mail: info@hupfeld-software.de
* Version: 1.0
* Datum: 18.05.2021
* zuletzt geändert: 18.02.2024
******************************** */
// Query
$dbFilename="../db/locations.db";
require ("../config.php");
require_once("../config.db.php");
require_once ("../config.php");
$result = $db->query("SELECT * FROM location ORDER BY created_at ASC");

View File

@ -8,6 +8,8 @@ $db_name = "nrw_melder";
$cachetime = 0;
$location_key="8b0d633d90b501";
$mapbox_key="pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw";
try {
$db = new PDO('mysql:host='.$db_server.';dbname='.$db_name.';charset=utf8mb4', $db_user, $db_passwd);

View File

@ -163,7 +163,7 @@
// ocmlink = '<a href="http://thunderforest.com/">Thunderforest</a>';
var ocmLink = '<a href="https://www.mapbox.com/">Mapbox</a>';
L.tileLayer('https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw', {
L.tileLayer('https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token='.$mapbox_key, {
maxZoom: 18,
minZoom:<?=$numZoom ?>,
attribution: 'Map data &copy; '+ mapLink +' contributors, ' +