diff --git a/railroad-classic/.thumb.png b/railroad-classic/.thumb.png new file mode 100644 index 0000000..8f32a94 Binary files /dev/null and b/railroad-classic/.thumb.png differ diff --git a/railroad-classic/map.geojson b/railroad-classic/map.geojson new file mode 100644 index 0000000..745190b --- /dev/null +++ b/railroad-classic/map.geojson @@ -0,0 +1 @@ +{"type":"FeatureCollection","features":[{"type":"Feature","properties":{"rail":"boss"},"geometry":{"type":"LineString","coordinates":[[-81.66824340820312,41.49199225714899],[-81.66455268859863,41.49257087656359],[-81.65459632873535,41.49179938286225],[-81.66232109069824,41.47958284148911],[-81.6628360748291,41.4767534192321],[-81.66197776794434,41.47405249184976],[-81.64669990539551,41.468907556911326],[-81.6474723815918,41.46659220297272],[-81.65880203247069,41.455528815136894],[-81.66661262512207,41.441053510801616],[-81.66712760925293,41.4392519136367],[-81.66953086853027,41.43326767841296],[-81.66970252990723,41.43230242751241],[-81.67038917541504,41.424772977902634],[-81.6697883605957,41.4230352886024],[-81.66875839233398,41.42168372033083],[-81.66747093200684,41.420589573031435],[-81.6665267944336,41.41962413363478],[-81.66523933410645,41.41846558741408],[-81.66420936584473,41.417628846735006],[-81.66317939758301,41.416663363325526],[-81.66146278381348,41.41576223252812],[-81.66141986846922,41.415247295030724],[-81.65820121765137,41.413734642523444]]}}]} \ No newline at end of file diff --git a/railroad-classic/project.mml b/railroad-classic/project.mml new file mode 100644 index 0000000..d8c3a38 --- /dev/null +++ b/railroad-classic/project.mml @@ -0,0 +1,57 @@ +{ + "bounds": [ + -81.6746, + 41.4613, + -81.644, + 41.479 + ], + "center": [ + -81.6606, + 41.4699, + 15 + ], + "format": "png", + "interactivity": false, + "minzoom": 11, + "maxzoom": 21, + "srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over", + "Stylesheet": [ + "style.mss" + ], + "Layer": [ + { + "id": "countries", + "name": "countries", + "srs": "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over", + "geometry": "polygon", + "Datasource": { + "file": "http://mapbox-geodata.s3.amazonaws.com/natural-earth-1.4.0/cultural/10m-admin-0-countries.zip", + "type": "shape" + } + }, + { + "geometry": "linestring", + "extent": [ + -81.67038917541504, + 41.413734642523444, + -81.64669990539551, + 41.49257087656359 + ], + "id": "rail", + "class": "", + "Datasource": { + "file": "map.geojson" + }, + "srs-name": "autodetect", + "srs": "", + "advanced": {}, + "name": "rail" + } + ], + "scale": 1, + "metatile": 2, + "_basemap": "", + "name": "Railroad Classic", + "description": "replicating a depiction of a classic railroad, like the red line shown for Flushing at : transitmaps.tumblr.com/post/55532719752/nyc-expansion-1968 (first picture)", + "attribution": "Public Domain" +} \ No newline at end of file diff --git a/railroad-classic/style.mss b/railroad-classic/style.mss new file mode 100644 index 0000000..e341c17 --- /dev/null +++ b/railroad-classic/style.mss @@ -0,0 +1,45 @@ +Map { + background-color: #b8dee6; +} + + +#countries { + ::outline { + line-color: #85c5d3; + line-width: 2; + line-join: round; + } + polygon-fill: #fff; +} + +/* first digit of line-dasharray controls thickness of your perpendicular dash, +AKA 'spur' ; second digit, controls the space between each spur*/ + +#rail [zoom>=12][zoom<=21] { +::perpendicular-dashes { +line-cap: butt; +line-color: black; +[zoom>=12] { line-width: 5.25; + line-dasharray: 0.45,10; } +[zoom>=14] { line-width: 5.75; + line-dasharray: 0.75,15;} +[zoom>=16] { line-width: 6.75; + line-dasharray: 1.25,20; } +[zoom>=18] { line-width: 7; + line-dasharray: 1.5,25; } +[zoom>=20] { line-width: 7; + line-dasharray: 1.75,35; } +} +#rail [zoom>=12][zoom<=21] { +::base-line { +line-cap: butt; +line-color: black; +[zoom>=12] { line-width: 1; } +[zoom>=14] { line-width: 1.25; } +[zoom>=16] { line-width: 1.75; } +[zoom>=18] { line-width: 2; } +[zoom>=20] { line-width: 2.25; } +} +} +} +