Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
147 commits
Select commit Hold shift + click to select a range
144a820
Add files via upload
PickleRickVE Sep 11, 2019
e20d31c
Add files via upload
PickleRickVE Sep 11, 2019
457e5b4
Add files via upload
PickleRickVE Sep 11, 2019
70a2052
Update README.md
PickleRickVE Sep 11, 2019
fd88de0
Add files via upload
PickleRickVE Sep 11, 2019
e30390c
Update README.md
PickleRickVE Sep 11, 2019
50690e9
show ex-raid-eligible gyms as maroon
PickleRickVE Sep 12, 2019
86e2de7
show names of stops & gyms on popup
PickleRickVE Sep 12, 2019
6090a34
Update README.md
PickleRickVE Sep 13, 2019
1c7fcb1
Update rdm-tools.php
PickleRickVE Sep 13, 2019
56ae14e
changed view of despawn_sec
PickleRickVE Sep 13, 2019
816040d
changed rdmdb.pokemon to pokemon
PickleRickVE Sep 20, 2019
e823f8d
added spawnpoints to unknown poi functionality
PickleRickVE Sep 25, 2019
3f17ad2
added functionality for three different s2cell level - thx @alex
PickleRickVE Sep 28, 2019
bd94d61
corrected count of visible points an readme
PickleRickVE Sep 29, 2019
25bc13d
corrected rendering and comma error, moved button 'Get all nest repor…
PickleRickVE Oct 3, 2019
45ccaa3
added selectable tileset in settings
PickleRickVE Oct 5, 2019
b427f8c
fixed copy to clipboard of get output
PickleRickVE Oct 5, 2019
43c02b6
cosmetic change of showing despawn time
PickleRickVE Oct 7, 2019
462d096
added language selection for pokemon names in settings, added french …
PickleRickVE Oct 8, 2019
c841599
added multilanguage support with external files
PickleRickVE Oct 14, 2019
05feef5
added function to get to home location
PickleRickVE Oct 14, 2019
0ca94fa
Add files via upload
PickleRickVE Oct 14, 2019
3a6bc59
Update README.md
PickleRickVE Oct 14, 2019
456a856
added optional optimization for shortest possible route
PickleRickVE Oct 15, 2019
5a2d3be
updated README.md
PickleRickVE Oct 15, 2019
5827dcb
Update rdm-tools.php
PickleRickVE Oct 16, 2019
f1b8c05
outsourcing the config
PickleRickVE Oct 20, 2019
c9344d5
added count of circles in output
PickleRickVE Oct 20, 2019
23fe204
improved calculation of shortest route
PickleRickVE Oct 24, 2019
543aa56
reworked settings of s2cells with max-level 19 (performance) an locke…
PickleRickVE Oct 25, 2019
1915c70
changed osm query
PickleRickVE Oct 25, 2019
bdf9c99
changed s2cell function to re-allow L20 cells and improved performance
PickleRickVE Oct 27, 2019
96c42d2
removed a bug
PickleRickVE Oct 27, 2019
2ef4b41
added spawnpoints without despawn time as option to optimize route fu…
PickleRickVE Nov 6, 2019
058be41
added searchfield for cities, deactivated zoomcontrol
PickleRickVE Nov 7, 2019
a733dde
added import of administrative boundaries via OSM
PickleRickVE Nov 11, 2019
fda444c
reactivated zoom control
PickleRickVE Nov 11, 2019
d469c2d
added count of pois in s2l14 cells with label on map and option in se…
PickleRickVE Nov 13, 2019
0e49ef7
Merge remote-tracking branch 'origin/master'
PickleRickVE Nov 14, 2019
9084b42
Revert "Merge remote-tracking branch 'origin/master'"
PickleRickVE Nov 14, 2019
37add47
changed way of importing polygon instances to single polygons, not a …
PickleRickVE Nov 17, 2019
ddb2c72
added import for and displaying of wayfarer submissions including 20m…
PickleRickVE Nov 19, 2019
3b340e4
added support for specific csv format for importing submissions from …
PickleRickVE Nov 20, 2019
09a5b01
changed marker for submissions and added the photo to the popup
PickleRickVE Nov 20, 2019
7291fee
changed color of touched s2l15 cells to black for differentiating if …
PickleRickVE Nov 20, 2019
9abea1b
improved some code
PickleRickVE Nov 21, 2019
3c5b7ff
added option in config for own tileset, made some grammatical optimiz…
PickleRickVE Nov 24, 2019
e5c9d23
added polygon export in PoracleJS format & copy function
PickleRickVE Nov 25, 2019
8017d38
added option for hiding spawnpoints last updated before a specific date
PickleRickVE Nov 27, 2019
e9ea34c
added passive mode for imported circle instances
PickleRickVE Nov 28, 2019
3669be2
corrected naming fault
PickleRickVE Nov 28, 2019
0965d02
corrected naming fault
PickleRickVE Nov 28, 2019
34d7b62
improved performance - all pois in bound were loaded before, even if …
PickleRickVE Nov 28, 2019
c1e6d73
Update README.md
PickleRickVE Dec 3, 2019
08b4c90
Update README.md
PickleRickVE Dec 3, 2019
a3aad32
optimized komma handling in import function and increased zoom for s2…
PickleRickVE Dec 4, 2019
229a5f2
added function to place own POIs and made their markers draggable wit…
PickleRickVE Dec 6, 2019
0167bb7
fixed spawnreport
PickleRickVE Dec 22, 2019
88103da
fixed copy function for circle output
PickleRickVE Dec 24, 2019
3d875ee
added average points per circle in output
PickleRickVE Dec 24, 2019
8729e64
fixed count of points in circles and cells. Previously only visible p…
PickleRickVE Dec 26, 2019
e132757
Export of multiple polygons at once in json-, poracle geofences- & pm…
PickleRickVE Dec 30, 2019
39a861f
built in a color picker for instances instead of a text-field
PickleRickVE Jan 1, 2020
8f4c57b
added color picker for polygon import
PickleRickVE Jan 5, 2020
3f099f1
solved issue #5 - tapping key 6 no longer zooms out
PickleRickVE Jan 6, 2020
1e494e5
added autogeneration of the correct circle size for raid instances de…
PickleRickVE Jan 8, 2020
fd12479
added tileserver with satellite view
PickleRickVE Jan 8, 2020
e15eb75
(re)added option for custom radius when importing instances
PickleRickVE Jan 12, 2020
a49416a
added individual handling of instances and multi select on export
PickleRickVE Jan 18, 2020
5cffd6d
fixed handling for generated circles
PickleRickVE Jan 19, 2020
820792b
fixed handling for optimized circles
PickleRickVE Jan 24, 2020
e27ea44
complete rework and some great new functions
PickleRickVE Feb 11, 2020
81deae2
added french translation
PickleRickVE Feb 12, 2020
5c4e0de
removed old files
PickleRickVE Feb 12, 2020
a9d4d86
fixed single polygon export for administrative units
PickleRickVE Feb 13, 2020
98620c8
added check for missed quests with selectable instances
PickleRickVE Feb 19, 2020
c4d56ca
changed to right version for missed quests
PickleRickVE Feb 20, 2020
682356f
changed circle generation to bootstrap without s2cells and added an o…
PickleRickVE Feb 25, 2020
3ff9aa0
added last update to popup of gyms & stops
PickleRickVE Feb 27, 2020
29a0d93
added consideration of 'deleted'-column of pokestop table
PickleRickVE Mar 10, 2020
264d92a
added optional use of password protection via .htaccess - initial use…
PickleRickVE Apr 29, 2020
2db06ef
Added radius and coordinates to circle popup, added free circle tool …
PickleRickVE May 5, 2020
132bb57
Added circle size for 1gb devices in settings.
PickleRickVE May 5, 2020
b1b51fc
fixed unknown points function and generally optimized loading of data
PickleRickVE May 13, 2020
0aa4d8f
fixed a bug that prevented output when deleting a circle from bootstr…
PickleRickVE May 13, 2020
6b4474c
fixed getting to the wrong world when completely zoomed out
PickleRickVE Aug 30, 2020
400ec60
added some osm tags for nest identification
PickleRickVE Aug 30, 2020
506a1cb
add path counter and lat,lon to circle popup
lenisko Nov 7, 2020
f9867ab
rename to Circle Counter - as it's not counter
lenisko Nov 7, 2020
b98943c
don't save counter in passive mode
lenisko Nov 7, 2020
5252e3f
config.env.php
123FLO321 Feb 19, 2021
e9337ae
use config.env.php as default config
123FLO321 Feb 19, 2021
d035ba1
Update config.env.php
123FLO321 Feb 19, 2021
45e4127
Merge pull request #10 from lenisko/circle_popup_addition
PickleRickVE Feb 23, 2021
62d2dd3
adjusted circle popup
PickleRickVE Feb 23, 2021
d481f8e
Merge pull request #12 from 123FLO321/docker
PickleRickVE Feb 23, 2021
5c3fb76
Delete config.example.php
PickleRickVE Feb 23, 2021
081352c
preserve osm id and name of manually imported nests or polygons
PickleRickVE Mar 8, 2021
ba5f84f
support for pmsf's manualdb | read & write nests | write nestpokemon …
PickleRickVE Mar 12, 2021
588f12e
added length for instance and area for polygons on the associated pop…
PickleRickVE Mar 15, 2021
8c0ece9
adjustable options/query for importing nests from osm, function moved…
PickleRickVE Mar 15, 2021
275c239
fixed and added some parts of polygon import
PickleRickVE Mar 28, 2021
8e95280
added automatic calculation of actual nest migration date
PickleRickVE Mar 28, 2021
e181251
fixed import of polygon instances
PickleRickVE May 26, 2021
0440cce
added circle_smart_pokemon instance type
PickleRickVE May 27, 2021
43d6cd8
Fix: added option in config to switch manualdb support on or off, sta…
PickleRickVE May 27, 2021
c4edd65
added function to merge polygons and changed simple export of polygons
PickleRickVE May 28, 2021
e1c101b
Fixed several errors where empty lines or garbage input would crash t…
Deses Apr 29, 2022
d4515be
Fixed errors in the polygon section
Deses Apr 29, 2022
55d9765
Made the comparators more strict.
Deses Apr 29, 2022
7c1066a
Added one more level to the Administrative Boundaries. Some regions a…
Deses May 6, 2022
1c6b3f9
Removed a bunch of duplicated code.
Deses May 6, 2022
4c6e038
Fix to Circle Radius Calculator
Deses May 6, 2022
0ed20b6
More cleanup.
Deses May 6, 2022
cf7211a
Added an option (by default disabled) to show or hide S2 cells on big…
Deses May 6, 2022
d9b1404
Fixed a regression.
Deses May 6, 2022
61b9f53
Found another regression.
Deses May 7, 2022
15dbb05
bruh.
Deses May 7, 2022
7f45a5f
Enabling the delete feture button could be useful. Way faster than ha…
Deses May 8, 2022
0c41347
More small optimizations.
Deses May 8, 2022
1e7a47d
Clear the bootstrap layer (initial circle array) when optimizing to r…
Deses May 8, 2022
8e88764
$("#modalLoading").modal('hide'); was in the wrong place, so it was n…
Deses May 8, 2022
78f1901
Merge pull request #17 from Deses/fix-import-empty-lines
PickleRickVE May 17, 2022
01d5ef6
update config.php usage
Fabio1988 May 19, 2022
1779d9d
Merge pull request #18 from Fabio1988/patch-2
PickleRickVE May 28, 2022
595884e
added support for 9x9 cell scanning
PickleRickVE May 28, 2022
dadb26b
Add files via upload
PickleRickVE May 29, 2022
fe8fb5a
Update index.php
ReuschelCGN Aug 15, 2022
39dd621
Update index.php
ReuschelCGN Aug 15, 2022
b3edaf9
Merge pull request #19 from ReuschelCGN/master
PickleRickVE Aug 28, 2022
6f38c5c
removed old 1gb device support and added v2.0 support instead plus fi…
PickleRickVE Sep 5, 2022
c03d73a
added import for 9x9 instances via checkbox
PickleRickVE Sep 10, 2022
f9978d6
changed method for selection of import instance type to radio buttons
PickleRickVE Sep 15, 2022
495f734
Docker Support updates & README changes
MC0R3 Sep 21, 2022
063767e
Update README.md
MC0R3 Sep 21, 2022
ba0193c
Update README.md
MC0R3 Sep 21, 2022
741a57a
Update docker-compose.example.yml
MC0R3 Sep 21, 2022
4a38106
Update Dockerfile
MC0R3 Sep 21, 2022
b18fa61
added bootstrapping for 9x9
PickleRickVE Sep 29, 2022
25a2bc9
changed spawnpoint query from updated to last_seen and added scrub as…
PickleRickVE Nov 10, 2022
0e638a6
Merge pull request #21 from MC0R3/master
PickleRickVE Nov 20, 2022
a4c332f
create docker workflow
Fabio1988 Dec 30, 2022
761e3e8
Merge pull request #22 from Fabio1988/patch-3
PickleRickVE Dec 31, 2022
879384c
fixed 9x9 bootstrap
PickleRickVE Jan 29, 2023
ec629da
Update docker-compose.example.yml
Fabio1988 Mar 10, 2023
d223339
Merge pull request #23 from Fabio1988/patch-3
PickleRickVE Mar 10, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Docker
on: [push]

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
Docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/config/*
/tools_config/*
.DS_Store
5 changes: 5 additions & 0 deletions .htaccess.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Options -Indexes
AuthType Basic
AuthName "Restricted content"
AuthUserFile /var/www/html/config/.htpasswd
Require valid-user
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM php:7.2.2-apache

# Remove folders from the html-folder (in case of an update)
WORKDIR /var/www/html/
RUN rm -rf /var/www/html/*

# Copy all files over to the working directory
COPY ./css/* /var/www/html/css/
COPY ./other/* /var/www/html/other/
COPY ./index.php /var/www/html/

# Copy config-files over to the working directory
# Uncomment the lines if you have set up a password
COPY ./config/config.env.php /var/www/html/config/config.php
#COPY ./config/.htpasswd /var/www/html/config/.htpasswd
#COPY ./.htaccess.example /var/www/html/.htaccess

# Run the application
RUN docker-php-ext-install pdo pdo_mysql
129 changes: 31 additions & 98 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,101 +1,34 @@
![RealDeviceMap-tools](assets/map-header.png?raw=true)
# RealDeviceMap-tools
Tools for managing RealDeviceMap data
![RealDeviceMap-tools](assets/map-header.png?raw=true)

## rdm-tools.php
### Changes
* Now you can report on all nests at once!
* You don't have to have spawns/stops visible on map to perform reporting anymore.
* Revised optimization function - same super simple algorithm, might be better performing though
* Changes to data storage, functions no longer loop through map objects, coordinates for gyms/stops/spawns are stored separately. Should help with performance

### Features
* View/hide known gyms, stops, and spawnpoints
* Optionally show only unknown gyms/stops
* Nest polygon import from OSM data, set to last datetime of Niantic OSM sync
* [date:"2018-04-09T01:32:00Z"]
* way["leisure"="park"]
* way["leisure"="recreation_ground"]
* way["landuse"="recreation_ground"]
* CSV and GeoJSON polygon import
* GeoJSON polygon export
* Coordinate generation - blanket fill polygons with route points
* Coordinate optimization - fill polygons with route points optimized for existing known gyms/stops/spawnpoints
* Instance import - view your RDM instances and add/remove route points, then reexport and upload to RDM

### Installation
Simply upload rdm-tools.php to your favorite webserver, point the database variables to your RDM DB's IP, and configure your username/password.

### Usage
The map has a variety of control buttons for performing different functions:

#### ![Map Settings](assets/map-settings.png?raw=true) Settings
* Nest Migration Date - select the last nest migration.
* Optimization Attempts - number of passes to attempt to optimize coordinates during optimization.
* Circle Size - View distance radius (in meters) to route for.
* Generate all nests - Get a report of spawns for all nests in current map bounds. _See below_.

#### Map mode
* ![Map Mode - Routing](assets/map-routing.png?raw=true) Enables full functionality including polygon and routing functions.
* ![Map Mode - Viewing](assets/map-viewing.png?raw=true) For viewing points of interest and spawnpoints only. Enables the option to filter unknown points of interest.

#### View mode
* ![View Mode - Gyms](assets/map-view-gyms.png?raw=true) Enables/disables viewing gyms as red dots on the map.
* ![View Mode - Pokestops](assets/map-view-stops.png?raw=true) Enables/disables viewing pokestops as green dots on the map.
* ![View Mode - Spawnpoints](assets/map-view-spawns.png?raw=true) Enables/disables viewing spawnpoints as blue dots on the map.

#### Routing and Drawing
* ![Draw Polygon](assets/map-draw-polygon.png?raw=true) Enables drawing of polygons on the map.
* ![Manual route placement](assets/map-place-circle.png?raw=true) Enables/disables manual placement of route points. Click on the map to drop a route point in the routing layer based on view radius setting.
* ![Import Nests](assets/map-import-nests.png?raw=true) Pulls nest data from OSM and places polygons in the current map bounds covering all parks.
* ![Import Polygon](assets/map-import-polygon.png?raw=true) Import CSV or GeoJSON polygon data. GeoJSON can contain multiple polygons, each one will be placed individually.
* ![Import Instance](assets/map-import-instance.png?raw=true) Imports an instance from your RDM DB and places the route points in the routing layer based on view radius setting.
* ![Clear Routing Layer](assets/map-clear-routing-layer.png?raw=true) Clears the current route from the map, leaving polygons behind
* ![Clear All Layers](assets/map-clear-all-layers.png?raw=true) Clears all route points and polygons from map.
* ![Generate Route](assets/map-generate-route.png?raw=true) Generates a blanket route over all polygons on the map.
* ![Optimize Route](assets/map-optimize-route.png?raw=true) Takes all visible points - gyms, stops, and spawns - and optimizes a route between them based on view radius (circle size).
* ![Get Output](assets/map-get-output.png?raw=true) Opens a textbox to generate lat,lon points for all routing layer coordinates, to be saved as an instance in RDM.

#### Polygon options
![Polygon Options](assets/polygon-options.png?raw=true)

Clicking on any polygon will allow you to generate a spawn report, remove it from the map, or export as GeoJSON.

To generate a spawn report, keep in mind the Nest Migration Date setting. The query generated for your database will only grab spawn data from that point forward. If you are just looking to get data for your area and not specifically reporting on a nest, set the date accordingly before generating your report. Once generated, a modal window will open showing a table of all the spawn counts for that polygon.

![Example spawn report](assets/example-spawn-report.png?raw=true)

Example spawn report for a local nest.

#### New feature - generate a spawn report for all nests
In the settings menu, a new button is available to create a report for all nests in your current map bounds. Make sure you import nest polygons first!

![Example spawn report](assets/example-all-nests-report.png?raw=true)

Example multi-nest report

#### Route options
![Route Options](assets/route-point-options.png?raw=true)

After a route is generated, you can click on any point of the route to remove it from the map.

## Example outputs
![Example spawn route](assets/example-blanket-route-spawn.png?raw=true)

Example route showing a blanket route of 75m circles covering a town for finding new spawn points.

![Example gym route](assets/example-blanket-route-gym.png?raw=true)

Example route showing the same polygon covered with 500m circles for finding new raids and stops.

![Example optimized gym route](assets/example-optimized-route-gyms.png?raw=true)

Example optimization covering gyms in a polygon

![Example nest route](assets/example-blanket-route-nest.png?raw=true)

Example optimization covering all nests in map bounds, for finding new spawnpoints in nests

![Example optimized nest route](assets/example-optimized-route-nests.png?raw=true)

Example optimization covering known spawnpoints in multiple nests. Note that you can remove overlapping circles by clicking on them and choosing delete - the optimization routine still needs some work.
## Changes
* Added more details to the import of administrative boundaries
* Distance between points on routes is colored
* Option to show routes for instances, generate new routes for instances or drawn circles and visualize it directly
* Added Dockerfile to generate a local image
* Autogeneration of the correct circle size for raid instances depending on the specific latitude, option in settings to choose between iv-, raid- or own radius
* Color Picker built in for instance- and polygon-import

## Installation
1. `git clone https://github.com/PickleRickVE/RealDeviceMap-tools`
2. Enter the new folder `cd RealDeviceMap-tools` and go to the config folder `cd config`
2. Edit `nano config.env.php` and add your credentials for the RDM and/or Nest database.
3. Edit `nano .htpasswd` to set a username and password. The default user is **admin** with password **admin**, you can generate one [here](https://www.web2generators.com/apache-tools/htpasswd-generator).

### Optional: when running Docker
1. Paste the contents from docker-compose.example.yml in the files where RDM & it's database is located and edit where needed
2. Check Dockerfile and uncomment the line with .htaccess if you want to use a password
3. Run `docker-compose up -d --build rdm_tools`

## Updates
1. Use git pull in the folder
2. When using Docker, re-run `docker-compose up -d --build rdm_tools`

## Usage
For more info please use the [wiki](https://github.com/PickleRickVE/RealDeviceMap-tools/wiki).

## Thanks
* Credit to [abakedapplepie](https://github.com/abakedapplepie) and his creditors for the base
* Credit to [lovasoa](https://github.com/lovasoa) for the traveling salesman script
* Credit to [leevo](https://github.com/xxleevo) for various ideas
1 change: 0 additions & 1 deletion assets/README.md

This file was deleted.

Binary file removed assets/example-all-nests-report.png
Binary file not shown.
Binary file removed assets/example-blanket-route-gym.png
Binary file not shown.
Binary file removed assets/example-blanket-route-nest.png
Binary file not shown.
Binary file removed assets/example-blanket-route-spawn.png
Binary file not shown.
Binary file removed assets/example-optimized-route-gyms.png
Binary file not shown.
Binary file removed assets/example-optimized-route-nests.png
Binary file not shown.
Binary file removed assets/example-spawn-report.png
Binary file not shown.
Binary file removed assets/map-clear-all-layers.png
Binary file not shown.
Binary file removed assets/map-clear-routing-layer.png
Binary file not shown.
Binary file removed assets/map-draw-polygon.png
Binary file not shown.
Binary file removed assets/map-generate-route.png
Binary file not shown.
Binary file removed assets/map-get-output.png
Binary file not shown.
Binary file modified assets/map-header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/map-import-instance.png
Binary file not shown.
Binary file removed assets/map-import-nests.png
Binary file not shown.
Binary file removed assets/map-import-polygon.png
Binary file not shown.
Binary file removed assets/map-optimize-route.png
Binary file not shown.
Binary file removed assets/map-place-circle.png
Binary file not shown.
Binary file removed assets/map-routing.png
Binary file not shown.
Binary file removed assets/map-settings.png
Binary file not shown.
Binary file removed assets/map-view-gyms.png
Binary file not shown.
Binary file removed assets/map-view-spawns.png
Binary file not shown.
Binary file removed assets/map-view-stops.png
Binary file not shown.
Binary file removed assets/map-viewing.png
Binary file not shown.
Binary file removed assets/polygon-options.png
Binary file not shown.
Binary file removed assets/route-point-options.png
Diff not rendered.
Binary file added assets/settings-button.png
Binary file added assets/settings.png
1 change: 1 addition & 0 deletions config/.htpasswd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
admin:$apr1$1edgsm5o$xGC./.P3PARUp1x56wEIx/
21 changes: 21 additions & 0 deletions config/config.env.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

// RDM DB
define('DB_HOST', getenv("DB_HOST") ?: "127.0.0.1");
define('DB_USER', getenv("DB_USER") ?: "rdmuser");
define('DB_PSWD', getenv("DB_PSWD") ?: "password");
define('DB_NAME', getenv("DB_NAME") ?: "rdmdb");
define('DB_PORT', getenv("DB_PORT") ?: 3306);

// ManualDB (for nests)
define('MDB_ACTIVE', getenv("MDB_ACTIVE") ?: false);
define('MDB_HOST', getenv("MDB_HOST") ?: "127.0.0.1");
define('MDB_USER', getenv("MDB_HOST") ?: "mdbuser");
define('MDB_PSWD', getenv("MDB_HOST") ?: "password");
define('MDB_NAME', getenv("MDB_HOST") ?: "manualdb");
define('MDB_PORT', getenv("MDB_HOST") ?: 3306);

// own Tileserver
define('OWN_TS', getenv("OWN_TS") ?: "https://IP:PORT/tile/STYLE/{z}/{x}/{y}/1/png");

?>
134 changes: 134 additions & 0 deletions css/leaflet-search.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
/*
* Leaflet Control Search v2.9.7 - 2019-01-14
*
* Copyright 2019 Stefano Cudini
* stefano.cudini@gmail.com
* http://labs.easyblog.it/
*
* Licensed under the MIT license.
*
* Demo:
* http://labs.easyblog.it/maps/leaflet-search/
*
* Source:
* git@github.com:stefanocudini/leaflet-search.git
*
*/

.leaflet-container .leaflet-control-search {
position:relative;
float:left;
background:#fff;
color:#1978cf;
border: 2px solid rgba(0,0,0,0.2);
background-clip: padding-box;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
background-color: rgba(255, 255, 255, 0.8);
z-index:1000;
margin-left: 10px;
margin-top: 10px;
}
.leaflet-control-search.search-exp {/*expanded*/
background: #fff;
border: 2px solid rgba(0,0,0,0.2);
background-clip: padding-box;
}
.leaflet-control-search .search-input {
display:block;
float:left;
background: #fff;
border:1px solid #666;
border-radius:2px;
height:22px;
padding:0 20px 0 2px;
margin:4px 0 4px 4px;
}
.leaflet-control-search.search-load .search-input {
background: url('../other/loader.gif') no-repeat center right #fff;
}
.leaflet-control-search.search-load .search-cancel {
visibility:hidden;
}
.leaflet-control-search .search-cancel {
display:block;
width:22px;
height:22px;
position:absolute;
right:28px;
margin:6px 0;
background: url('../other/search-icon.png') no-repeat 0 -46px;
text-decoration:none;
filter: alpha(opacity=80);
opacity: 0.8;
}
.leaflet-control-search .search-cancel:hover {
filter: alpha(opacity=100);
opacity: 1;
}
.leaflet-control-search .search-cancel span {
display:none;/* comment for cancel button imageless */
font-size:18px;
line-height:20px;
color:#ccc;
font-weight:bold;
}
.leaflet-control-search .search-cancel:hover span {
color:#aaa;
}
.leaflet-control-search .search-button {
display:block;
float:left;
width:30px;
height:30px;
background: url('../other/search-icon.png') no-repeat 4px 4px #fff;
border-radius:4px;
}
.leaflet-control-search .search-button:hover {
background: url('../other/search-icon.png') no-repeat 4px -20px #fafafa;
}
.leaflet-control-search .search-tooltip {
position:absolute;
top:100%;
left:0;
float:left;
list-style: none;
padding-left: 0;
min-width:120px;
max-height:122px;
box-shadow: 1px 1px 6px rgba(0,0,0,0.4);
background-color: rgba(0, 0, 0, 0.25);
z-index:1010;
overflow-y:auto;
overflow-x:hidden;
cursor: pointer;
}
.leaflet-control-search .search-tip {
margin:2px;
padding:2px 4px;
display:block;
color:black;
background: #eee;
border-radius:.25em;
text-decoration:none;
white-space:nowrap;
vertical-align:center;
}
.leaflet-control-search .search-button:hover {
background-color: #f4f4f4;
}
.leaflet-control-search .search-tip-select,
.leaflet-control-search .search-tip:hover {
background-color: #fff;
}
.leaflet-control-search .search-alert {
cursor:pointer;
clear:both;
font-size:.75em;
margin-bottom:5px;
padding:0 .25em;
color:#e00;
font-weight:bold;
border-radius:.25em;
}
Loading