[7754] | 1 | Nodemap 2.0 - An interactive nodemap
|
---|
[7610] | 2 |
|
---|
| 3 | = Introduction =
|
---|
[7790] | 4 | Nodemap 2.0 is an interactive map to show the nodes of the Wireless Leiden network. It
|
---|
| 5 | reads from a node location file and a node status file and parses this in a KML file.
|
---|
[7610] | 6 |
|
---|
[7790] | 7 | The KML file can be used in all sort of applications like Google Earth, Google Maps,
|
---|
| 8 | etc.. But for this project we integrated our very own Google Maps intepretation of the
|
---|
| 9 | KML file. The KML file is read and processed. Extra information is included.
|
---|
| 10 |
|
---|
[7610] | 11 | = Usage =
|
---|
[7790] | 12 | The KML files are stored in the /src/kml/ directory. Users can just call
|
---|
| 13 | /src/kml.php?time=%TIMESTAMP% to get the latest KML file created.
|
---|
[7610] | 14 |
|
---|
[7790] | 15 | The map is placed at /src/index.php and can be included in every website using a iframe.
|
---|
[7754] | 16 |
|
---|
[7610] | 17 | = File layout =
|
---|
[7790] | 18 | /src/img/ -> Directory with the images used in the applications (both KML file as
|
---|
| 19 | map site)
|
---|
| 20 | /src/inc/ -> Directory with the includes for the KML parser
|
---|
| 21 | /src/kml/ -> Directory with the stored KML files
|
---|
| 22 | /src/map/ -> Main directory for map site
|
---|
| 23 | /src/map/inc/ -> Directory with the includes for the map site
|
---|
| 24 | /src/map/style/ -> Directory with the stylesheets for the map site
|
---|
| 25 | /src/test/ -> Directory with a couple of tests for the KML parser classes
|
---|
| 26 | /src/config.php -> Main config file
|
---|
| 27 | /src/init.php -> Init file for KML parser
|
---|
| 28 | /src/kml-echo.php -> Echo's live a KML valid file
|
---|
| 29 | /src/kml.php -> Redirects the user to the latest KML file in the /src/kml/ directory.
|
---|
| 30 | If needed, creates a new KML file
|
---|
| 31 | /src/logfile.txt -> Main logging file with errors, warnings, etc.
|
---|
[7610] | 32 |
|
---|
[7858] | 33 | = Hacking =
|
---|
| 34 | In src/inc/LogHandler.class.php you can edit the logging values:
|
---|
| 35 | define('LOG_LEVEL_ECHO', SYSLOG_DEBUG);
|
---|
| 36 | define('LOG_LEVEL_WRITE', SYSLOG_DEBUG);
|
---|
| 37 | define('LOG_LEVEL_MAIL', SYSLOG_EMERG);
|
---|
| 38 |
|
---|
| 39 | Use USB Webserver (www.usbwebserver.com) for testing under Windows systems
|
---|
| 40 |
|
---|
| 41 | Use Eclipse (www.eclipse.org) for editing the code for easy auto completion
|
---|
| 42 |
|
---|
[7790] | 43 | = Credits =
|
---|
| 44 | Application created as a project of Hogeschool Leiden by the students:
|
---|
| 45 | Pieter Naber, Jan van Eeden, David de Boer
|
---|