Skip to content

Commit

Permalink
new wind power map, REDE updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill Morris committed Dec 6, 2011
1 parent 2fadd63 commit 176489d
Show file tree
Hide file tree
Showing 8 changed files with 220 additions and 0 deletions.
1 change: 1 addition & 0 deletions rede_highered_xcat/layers/countries
1 change: 1 addition & 0 deletions rede_highered_xcat/layers/highered
55 changes: 55 additions & 0 deletions rede_highered_xcat/rede_highered_xcat.mml
@@ -0,0 +1,55 @@
{
"bounds": [
-180,
-85.05112877980659,
180,
85.05112877980659
],
"center": [
-93.3343505859375,
40.44694705960048,
4
],
"format": "png",
"interactivity": {
"layer": "highered",
"template_teaser": "{{{Label}}}",
"template_full": "<strong>{{{Label}}}</strong>     <br /> \n{{{Address}}}<br />\n{{{City_1}}}, {{{State_1}}} {{{Zip_1}}}<br />\n**********<br />\n<i>Score: {{{score}}}</i><br />\nStudents & Staff: {{{popxcat}}}<br />\n",
"template_location": ""
},
"minzoom": 0,
"maxzoom": 22,
"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.3.0/cultural/10m-admin-0-countries.zip",
"type": "shape"
}
},
{
"geometry": "point",
"name": "highered",
"id": "highered",
"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",
"class": "point",
"Datasource": {
"file": "/home/wboykinm/Documents/MapBox/data/highered.zip",
"id": "highered",
"project": "rede_highered_xcat",
"srs": null
}
}
],
"name": "REDE Higher Education XCAT",
"description": "",
"attribution": "",
"legend": ""
}
95 changes: 95 additions & 0 deletions rede_highered_xcat/style.mss
@@ -0,0 +1,95 @@
/*Bounding boxes, zooms 1-13:
-Conus&PR: 50,17 Lat,-126,-64 Long
-AK: 72,51 Lat,-132,-177 Long
-HI: 23,18 Lat,-154,-160 Long
*/
Map {
/*background-color: #b8dee6;*/
}

/*#countries {
::outline {
line-color: #85c5d3;
line-width: 2;
line-join: round;
}
polygon-fill: #fff;
}*/

/************************styled on two variables*************************/
.point {
[popxcat<=1000] {
[zoom>0][zoom<6] { marker-height: 0.5; }
[zoom>5][zoom<9] { marker-height: 2; }
[zoom>8][zoom<12] { marker-height: 5; }
[zoom>11] { marker-height: 10; }
[score<15] { marker-line-color: #253494; marker-fill: #2C7FB8; }
[score>=15][score<20] { marker-line-color: #253494; marker-fill: #41B6C4; }
[score>=20][score<25] { marker-line-color: #253494; marker-fill: #7FCDBB; }
[score>=25][score<30] { marker-line-color: #253494; marker-fill: #C7E9B4; }
[score>=30] { marker-line-color: #253494; marker-fill: #FFFFCC; }
}

[popxcat>1000][popxcat<=5000] {
[zoom>0][zoom<6] { marker-height: 2; }
[zoom>5][zoom<9] { marker-height: 5; }
[zoom>8][zoom<12] { marker-height: 8; }
[zoom>11] { marker-height: 12; }
[score<15] { marker-line-color: #253494; marker-fill: #2C7FB8; }
[score>=15][score<20] { marker-line-color: #253494; marker-fill: #41B6C4; }
[score>=20][score<25] { marker-line-color: #253494; marker-fill: #7FCDBB; }
[score>=25][score<30] { marker-line-color: #253494; marker-fill: #C7E9B4; }
[score>=30] { marker-line-color: #253494; marker-fill: #FFFFCC; }
}

[popxcat>5000][popxcat<=20000] {
[zoom>0][zoom<6] { marker-height: 2; }
[zoom>5][zoom<9] { marker-height: 6; }
[zoom>8][zoom<12] { marker-height: 12; }
[zoom>11] { marker-height: 15; }
[score<15] { marker-line-color: #253494; marker-fill: #2C7FB8; }
[score>=15][score<20] { marker-line-color: #253494; marker-fill: #41B6C4; }
[score>=20][score<25] { marker-line-color: #253494; marker-fill: #7FCDBB; }
[score>=25][score<30] { marker-line-color: #253494; marker-fill: #C7E9B4; }
[score>=30] { marker-line-width: 2; marker-line-color: #253494; marker-fill: #FFFFCC; }
}

[popxcat>20000][popxcat<=200000] {
[zoom>0][zoom<6] { marker-height: 3; }
[zoom>5][zoom<9] { marker-height: 10; }
[zoom>8][zoom<12] { marker-height: 12; }
[zoom>11] { marker-height: 30; }
[score<15] { marker-line-color: #253494; marker-fill: #2C7FB8; }
[score>=15][score<20] { marker-line-color: #253494; marker-fill: #41B6C4; }
[score>=20][score<25] { marker-line-color: #253494; marker-fill: #7FCDBB; }
[score>=25][score<30] { marker-line-color: #253494; marker-fill: #C7E9B4; }
[score>=30] { marker-line-width: 2; marker-line-color: #253494; marker-fill: #FFFFCC; }
}

[popxcat>200000][popxcat<=500000] {
[zoom>0][zoom<6] { marker-height: 5; }
[zoom>5][zoom<9] { marker-height: 15; }
[zoom>8][zoom<12] { marker-height: 20; }
[zoom>11] { marker-height: 40; }
[score<15] { marker-line-color: #253494; marker-fill: #2C7FB8; }
[score>=15][score<20] { marker-line-color: #253494; marker-fill: #41B6C4; }
[score>=20][score<25] { marker-line-color: #253494; marker-fill: #7FCDBB; }
[score>=25][score<30] { marker-line-color: #253494; marker-fill: #C7E9B4; }
[score>=30] { marker-line-width: 2; marker-line-color: #253494; marker-fill: #FFFFCC; }
}

[popxcat>500000] {
[zoom>0][zoom<5] { marker-height: 10; }
[zoom>4][zoom<9] { marker-height: 20; }
[zoom>8][zoom<12] { marker-height: 30; }
[zoom>11] { marker-height: 50; }
[score<15] { marker-line-color: #253494; marker-fill: #2C7FB8; }
[score>=15][score<20] { marker-line-color: #253494; marker-fill: #41B6C4; }
[score>=20][score<25] { marker-line-color: #253494; marker-fill: #7FCDBB; }
[score>=25][score<30] { marker-line-color: #253494; marker-fill: #C7E9B4; }
[score>=30] { marker-line-width: 2; marker-line-color: #253494; marker-fill: #FFFFCC; }
}
marker-allow-overlap: true; /* allow markers to overlap */
marker-opacity: .6; /* set the marker to 60% opacity */
marker-line-opacity: .8; /* set the line to 80% opacity */
}
1 change: 1 addition & 0 deletions usa_wind/layers/countries
1 change: 1 addition & 0 deletions usa_wind/layers/wind
19 changes: 19 additions & 0 deletions usa_wind/style.mss
@@ -0,0 +1,19 @@
Map {
background-color: #b8dee6;
}

#countries {
::outline {
line-color: gray;
line-width: 2;
line-join: round;
}
polygon-fill: #fff;
}

.poly {
line-width: 0.5;
line-color: #b8dee6;
line-join: round;
line-opacity:0.8;
}
47 changes: 47 additions & 0 deletions usa_wind/usa_wind.mml
@@ -0,0 +1,47 @@
{
"bounds": [
-180,
-85.05112877980659,
180,
85.05112877980659
],
"center": [
-97.2509765625,
42.342305278572816,
5
],
"format": "png",
"interactivity": false,
"minzoom": 0,
"maxzoom": 22,
"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.3.0/cultural/10m-admin-0-countries.zip",
"type": "shape"
}
},
{
"geometry": "polygon",
"name": "wind",
"id": "wind",
"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",
"class": "poly",
"Datasource": {
"file": "/home/wboykinm/Documents/MapBox/data/usa_wind_wm.zip",
"id": "wind",
"project": "usa_wind",
"srs": null
}
}
],
"name": "ConUS Wind Power"
}

0 comments on commit 176489d

Please sign in to comment.