Added README file with notes on Leaflet and Map Tile server
authorChuck Scott <cscott@gaslightmedia.com>
Thu, 6 Sep 2018 18:44:23 +0000 (14:44 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Thu, 6 Sep 2018 18:44:23 +0000 (14:44 -0400)
README [new file with mode: 0755]

diff --git a/README b/README
new file mode 100755 (executable)
index 0000000..9247a66
--- /dev/null
+++ b/README
@@ -0,0 +1,58 @@
+
+OpenStreetMaps
+    OpenStreetMap Donations         https://wiki.openstreetmap.org/wiki/Donations
+    OpenStreetMats Help Site        https://help.openstreetmap.org/questions/
+        Nominatim (lookup)              https://wiki.openstreetmap.org/wiki/Nominatim
+            Install and Host                http://nominatim.org/release-docs/latest/admin/Installation/
+Leaflet                         https://leafletjs.com/
+    Leaflet Marker Clusers          https://github.com/Leaflet/Leaflet.markercluster
+    Leaflet Control OSM Geocoder    https://github.com/k4r573n/leaflet-control-osm-geocoder
+    Loading Indicator               https://github.com/ebrelsford/Leaflet.loading
+Switch2OSM                      https://switch2osm.org/serving-tiles/
+    Pre-Render Low Zoom Tiles ?
+Build Tile Server               https://switch2osm.org/manually-building-a-tile-server-18-04-lts/
+    Map Server Setup Tasks          https://meta.wikimedia.org/wiki/Maps_server_setup_tasks
+    Apache mod_tile                 https://wiki.openstreetmap.org/wiki/Mod_tile
+    Performance Tuning              http://www.geofabrik.de/media/2012-09-08-osm2pgsql-performance.pdf
+    Perhaps better build ingo       https://ircama.github.io/osm-carto-tutorials/tile-server-ubuntu/
+
+NOTE: I had some user confusion. It seems to be best to create the user that this server will run as and use that account to do all the setup and for the database user. It wanted the data and src directories to be under that user's home directory.
+
+Locations of certain relevant things in the server
+
+    Tile Directories:           /var/lib/mod_tile
+    Renderd Config:             /usr/loocal/etc/renderd.conf
+    Mapnik XML Files:           /home/{renderer user}/src/openstreetmap-carto/*.xml
+
+carto project.mml > mapnik.xml
+
+    Got a bunch of warnings like the following...
+
+    Warning: amenity-points.mss:2328:6 Styles do not match layer selector .text-low-zoom.
+
+
+"Loading Data" 
+
+    Specified North America instead of Azerbaijan from Download site: http://download.geofabrik.de/index.html
+
+    wget http://download.geofabrik.de/north-america-latest.osm.pbf
+
+    A better initial test might be just Michigan - be sure to change to that when using osm2pgsql
+
+    http://download.geofabrik.de/north-america/us/michigan-latest.osm.pbf
+
+
+
+To run osm2pgsql I had to create myself as a postgres superuser then use the following command to point to the North American data.
+
+    osm2pgsql -d gis --create --slim  -G --hstore --tag-transform-script ~/src/openstreetmap-carto/openstreetmap-carto.lua -C 2500 --number-processes 1 -S ~/src/openstreetmap-carto/openstreetmap-carto.style ~/data/north-america-latest.osm.pbf
+
+    Note: "-C" is the amount of memory in MB, change "--number-processes" to the available CPUs.
+    
+    
+    
+    
+Operational Notes
+-----------------
+
+Show Stats              {base server url}/mod_tile
\ No newline at end of file