Skip to content

Commit

Permalink
Add small section about mapping.
Browse files Browse the repository at this point in the history
  • Loading branch information
elafargue committed Jan 19, 2016
1 parent e497b78 commit 8ca34bf
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
21 changes: 21 additions & 0 deletions docs/mapping.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Mapping

One of the strengths of Polaric-webapp is that it can leverage mapcache to create a local cache of maps on the server - a Beaglebone in our case. This means that even without an Internet connection, you will still be able to run the Web app with actual maps.

## Online maps

When you have an Internet connection, there is no reason not to use OpenstreetMaps or Google maps. The map configuration in [/etc/polaric-webapp/mapconfig.js](https://github.com/elafargue/aprs-box/blob/master/config/etc/polaric-webapp/mapconfig.js) defines OpenstreetMaps, and multiple Google Maps layers by default.

Google Maps, in particular, does not allow you to cache its contents, so you will always need to be online to use those maps.

## Online/offline maps

Polaric-webapp (the OpenLayer subsystem of Webapp, really) is configured to leverage "mapcache". Mapcache requires a source that can talk the WMS protocol, and is able to locally proxy and cache the contents of maps, making them available offline - indefinitely if the expiry date of the cache is set to zero.

For North America, there are several map providers that work great with Mapcache, and are pre-configured in ```mapconfig.js``` : the USGS topo and satellite maps.

The OpenStreetMaps wiki [mentions WMS](http://wiki.openstreetmap.org/wiki/WMS) but I had very limited success with any of the providers mentioned there.

## Overall performance

On a Beaglebone black, map serving and caching, while not great, is perfectly adequate for a couple of users.
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ pages:
- Overview: software.md
- Direwolf: direwolf.md
- Polaric Server: polaric.md
- Local maps: mapping.md
- Admin configuration: admin.md

0 comments on commit 8ca34bf

Please sign in to comment.