Skip to content

sam302rk/weblnp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebLNP's icon

Leaflet-based line network map viewer

WebLNP is a client-sided and Leaflet-based web viewer for line network maps using OpenStreetMaps with the ability to add historic maps and/or different transit maps per city.

📍 Albtalbahnhof, Karlsruhe – 2018

Development

CLI Command Overview

Action Linux/MacOS Windows Description
View Command Overview ./weblnp help weblnp help Display a list with commands available on your platform.
Start WebLNP ./weblnp serve weblnp serve Starts a minimal static web server for Testing.
Runs on localhost:8000.
Requires Python 3.
Sort KML files ./weblnp sort weblnp sort All KML files in the root kml directory get their own directory named after the file
and the file itself gets moved inside renamed to main.kml.
Requires Python 3.
View License ./weblnp license weblnp license Prints the license of WebLNP.
Requires GNU cat when using the Bash version.
Reload Enviroment ./weblnp reload (not included) Rebinds the WebLNP CLI to the enviroment.
Learn more
Exit Enviroment ./weblnp exit (not included) Removes the WebLNP CLI from the enviroment.
Learn more

Contributing

# 1. Fork it
# https://github.com/sam302rk/weblnp/fork

# 2. Create your feature branch
$ git checkout -b feature/fooBar

# 3. Commit your changes
$ git commit -a

# 4. Push to the branch
$ git push origin feature/fooBar

# 5. Create a new pull request
# https://github.com/samuel-302/weblnp/compare

WebLNP as enviroment function (Linux)

For convenience you can also bind the function weblnp() running ./weblnp $1 under the hood into the enviroment.

# Expose function to the enviroment
$ source ./weblnp_env

# Calling the CLI via the enviroment instead of using the Bash file directly
$ weblnp <command>

# Reload
$ weblnp reload # ...or
$ ./weblnp reload

# Remove from enviroment
$ weblnp exit # or...
$ ./weblnp exit

Meta

Contributors

Distributed under the MIT license. See LICENSE for more information.

Warning
The license does not apply to the kml folder and it's subfolders!