From: Chuck Scott Date: Fri, 7 Sep 2018 20:03:36 +0000 (-0400) Subject: Added Map Style and Layer Information X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=42aaac49a1c9ebf49eb2827e9dabbb20730a8641;p=prog%2Fleaflet-demos.git Added Map Style and Layer Information --- diff --git a/Mapnik and Styles/layers.txt b/Mapnik and Styles/layers.txt new file mode 100755 index 0000000..ce98516 --- /dev/null +++ b/Mapnik and Styles/layers.txt @@ -0,0 +1,83 @@ +Layer Names (Layer) in default mapnik.xml file + +world +coast-poly +necountries +landcover-low-zoom +landcover +landcover-line +water-lines-casing +water-lines-low-zoom +icesheet-poly +water-areas +landcover-area-symbols +icesheet-outlines +springs +water-lines +water-barriers-line +water-barriers-poly +marinas-area +piers-poly +piers-line +water-barriers-point +bridge +buildings +buildings-major +landuse-overlay +tourism-boundary +line-barriers +cliffs +area-barriers +ferry-routes +turning-circle-casing +highway-area-casing +roads-casing +highway-area-fill +roads-fill +turning-circle-fill +aerialways +roads-low-zoom +waterway-bridges +guideways +entrances +aeroways +admin-low-zoom +admin-mid-zoom +admin-high-zoom +power-minorline +power-line +nature-reserve-boundaries +trees +country-names Removed in NoPlaceNames.html +capital-names Removed in NoPlaceNames.html +state-names Removed in NoPlaceNames.html +placenames-medium Removed in NoPlaceNames.html +placenames-small Removed in NoPlaceNames.html +stations +stations-poly +amenity-points-poly +amenity-line +amenity-points +power-towers +power-poles +roads-text-ref-low-zoom +junctions +bridge-text +roads-text-ref +roads-area-text-name +roads-text-name Removed in NoPlaceNames.html +paths-text-name +railways-text-name +text-poly-low-zoom +text-poly +text-line +text-point +building-text +interpolation +addresses +water-lines-text +ferry-routes-text +admin-text +nature-reserve-text +amenity-low-priority +amenity-low-priority-poly diff --git a/Mapnik and Styles/styles.txt b/Mapnik and Styles/styles.txt new file mode 100755 index 0000000..171727f --- /dev/null +++ b/Mapnik and Styles/styles.txt @@ -0,0 +1,128 @@ +Style Names (styleName) in default mapnik.xml file + +world +coast-poly +necountries +landcover-low-zoom-low-zoom +landcover-low-zoom-low-zoom/first +landcover-lower-mid-zoom +landcover-mid-zoom +landcover-upper-mid-zoom +landcover-high-zoom +landcover-high-zoom/first +landcover-mid-zoom/first +landcover-upper-mid-zoom/first +landcover-lower-mid-zoom/first +landcover-line +water-lines-casing +water-lines-low-zoom +icesheet-poly +water-areas-natural +water-areas-waterway +water-areas-landuse +landcover-area-symbols +landcover-area-symbols-wood +icesheet-outlines +springs +water-lines +water-barriers-line +water-barriers-poly +marinas-area +piers-poly +piers-line +water-barriers-point +bridge +buildings +buildings-major +tunnels-casing +tunnels-bridges_and_tunnels_background +tunnels-halo +tunnels-fill +landuse-overlay +tourism-boundary +line-barriers +cliffs +cliffs-man_made +area-barriers +ferry-routes +turning-circle-casing +highway-area-casing +roads-casing-casing +highway-area-fill +roads-fill-halo +roads-fill-fill +turning-circle-fill +aerialways +roads-low-zoom-halo +roads-low-zoom-fill +waterway-bridges +bridges-casing +bridges-bridges_and_tunnels_background +bridges-halo +bridges-fill +guideways +entrances +aeroways-casing +aeroways-fill +admin-low-zoom +admin-mid-zoom +admin-high-zoom +power-minorline +power-line +nature-reserve-boundaries-fill +nature-reserve-boundaries +trees-canopy +trees-trunk +country-names Removed in NoPlaceNames.html +capital-names Removed in NoPlaceNames.html +state-names Removed in NoPlaceNames.html +placenames-medium-high-importance Removed in NoPlaceNames.html +placenames-medium-medium-importance Removed in NoPlaceNames.html +placenames-medium-low-importance Removed in NoPlaceNames.html +placenames-small-suburb Removed in NoPlaceNames.html +placenames-small-village Removed in NoPlaceNames.html +placenames-small-quarter Removed in NoPlaceNames.html +placenames-small-hamlet Removed in NoPlaceNames.html +stations +stations-aerialway +stations-poly +stations-poly-aerialway +amenity-points-poly +amenity-points-poly-basin +amenity-points-poly-nozzle +amenity-line +amenity-points +amenity-points-basin +amenity-points-nozzle +power-towers +power-poles +roads-text-ref-low-zoom +junctions +bridge-text +roads-text-ref +roads-area-text-name +roads-text-name +roads-text-name-directions +paths-text-name +railways-text-name +text-poly-low-zoom +text-poly +text-line +text-point +building-text +interpolation +addresses +water-lines-text +ferry-routes-text +admin-text +nature-reserve-text +amenity-low-priority +amenity-low-priority-railway +amenity-low-priority-highway +amenity-low-priority-barrier +amenity-low-priority-amenity +amenity-low-priority-poly +amenity-low-priority-poly-railway +amenity-low-priority-poly-highway +amenity-low-priority-poly-barrier +amenity-low-priority-poly-amenity diff --git a/Other_Map_Styles/no_place_names.html b/Other_Map_Styles/no_place_names.html index b347844..284e391 100755 --- a/Other_Map_Styles/no_place_names.html +++ b/Other_Map_Styles/no_place_names.html @@ -7,7 +7,7 @@ -

Leaflet Map With Alternate Style

+

Leaflet Map With Alternate Style - No Place Names

This map uses an alternate style that is specified by using a special tile server key. In this case we've removed all of the place names from the map. diff --git a/README b/README index 9247a66..b9bd87e 100755 --- a/README +++ b/README @@ -1,22 +1,30 @@ +Map Keys -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. + Key generator: http://maps.gaslightmedia.com/admin/ + + Key format: {mmddyyyy}-{md5 of site, expiration date, and secret} + {mmddyyyy} is expiration date of key. In the key for easy test. Change this and the key will no longer validate. + +Useful Reference + + 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