Difference between revisions of "Database/Map/Server"

From Open Maps wiki
Jump to: navigation, search
(RPi side)
(RPi side)
Line 6: Line 6:
 
== RPi side ==  
 
== RPi side ==  
  
[http://wiki.openstreetmap.org/wiki/Mapserver Tutorial for mapserver hosting OSM]
 
  
[http://my5cent.spdns.de/en/beaglebone-black-raspberry-pi/einfacher-karten-server-mit-mapserver-schape-files-und-openlayers.html RPi Mapserver Setup]
+
Lets set up our map server with local cached image files
  
works great.  Then
 
 
# [http://xmodulo.com/how-to-uninstall-and-remove-apache2-on-ubuntu-debian.html uninstall apache]
 
 
# [http://elinux.org/RPi_Nginx_Webserver install Nginx instead]
 
# [http://elinux.org/RPi_Nginx_Webserver install Nginx instead]
 +
# Make a link to /var/www to make things easier: "sudo ln -s /var/www /home/USER/code"
 
# [http://wiki.nginx.org/PHPFcgiExample now set up PHP with fastCGI]
 
# [http://wiki.nginx.org/PHPFcgiExample now set up PHP with fastCGI]
 
# [http://gis.stackexchange.com/a/102775 set up mapserv]
 
# [http://gis.stackexchange.com/a/102775 set up mapserv]

Revision as of 05:14, 23 February 2015

Client Side

extract the location client-side with EXIF-JS

RPi side

Lets set up our map server with local cached image files

  1. install Nginx instead
  2. Make a link to /var/www to make things easier: "sudo ln -s /var/www /home/USER/code"
  3. now set up PHP with fastCGI
  4. set up mapserv
  5. add mapserv to cache
  6. set up AP with udhcpd
  7. edimax version of hostapd
  8. captive portal setup!!
  9. but with iptables command from here, since the others are broken
  10. dnsmarsq script logging...
Logging dhcp.png

ended up using dnsmasq for DNS and DHCP. Setting DNS forward IP to local for captive portal setup


some popup mehods

For Online

beautiful Stamen Design map that can be used

Map example1.png
Map example2.png