Skip to content

Commit

Permalink
include carto style sheet, legend and tooltip + shapefiles for FGA Oc…
Browse files Browse the repository at this point in the history
…cupy Directory map
  • Loading branch information
kleinjos committed Apr 24, 2012
1 parent 7eceedb commit e17e806
Show file tree
Hide file tree
Showing 13 changed files with 3,262 additions and 0 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file added occupy-streets/.DS_Store
Binary file not shown.
Binary file added occupy-streets/Shapefiles/.DS_Store
Binary file not shown.
Binary file not shown.
Binary file added occupy-streets/Shapefiles/delauney/delauney.dbf
Binary file not shown.
1 change: 1 addition & 0 deletions occupy-streets/Shapefiles/delauney/delauney.prj
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PROJCS["Google_Maps_Global_Mercator",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Mercator_2SP"],PARAMETER["standard_parallel_1",0],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",0],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["Meter",1]]
1 change: 1 addition & 0 deletions occupy-streets/Shapefiles/delauney/delauney.qpj
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PROJCS["Google Maps Global Mercator",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]],PROJECTION["Mercator_2SP"],PARAMETER["standard_parallel_1",0],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",0],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["Meter",1],EXTENSION["PROJ4","+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs"],AUTHORITY["EPSG","900913"]]
Binary file added occupy-streets/Shapefiles/delauney/delauney.shp
Binary file not shown.
Binary file added occupy-streets/Shapefiles/delauney/delauney.shx
Binary file not shown.
2,842 changes: 2,842 additions & 0 deletions occupy-streets/Shapefiles/occupy/occupy.geojson

Large diffs are not rendered by default.

143 changes: 143 additions & 0 deletions occupy-streets/base-carto.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
@brown:#ACA68a;
@background:lighten(desaturate(@brown, 20%),20%);
@yellow:#fffc00;
@white:#ffffff;
@opacity:.1;
@width:1;

Map {
background-color:darken(@background,55%);//spin(desaturate(darken(#205791,5%),25%),90);
}

#stateslakes {
line-width:1;
line-color:darken(@background,60%);
line-join: round;
polygon-fill:darken(@background,60%);
polygon-opacity: 1;
}

#occupy {
[zoom < 3] {
marker-allow-overlap:true;
::highlight{
marker-line-color:@yellow;
marker-allow-overlap:true;
marker-fill:@yellow;
marker-opacity:@opacity*1;
marker-line-color:@yellow;
marker-width:@width*2;
marker-line-width:@width;
marker-line-opacity:@opacity*1;
}
::highlight2 {
marker-line-color:@yellow;
marker-allow-overlap:true;
marker-fill:@yellow;
marker-opacity:@opacity*2;
marker-line-color:@yellow;
marker-width:@width*2;
marker-line-width:@width;
marker-line-opacity:@opacity*2;
}
::highlight3 {
marker-line-color:@yellow;
marker-allow-overlap:true;
marker-fill:@yellow;
marker-opacity:@opacity*3;
marker-line-color:@yellow;
marker-width:@width*.5;
marker-line-width:@width;
marker-line-opacity:@opacity*3;
}
marker-allow-overlap:true;
marker-fill:lighten(@yellow,55%);
marker-opacity:.8;
marker-width:.25;
marker-line-color:#ffffff;
}
[zoom <= 4] {
marker-allow-overlap:true;
::highlight{
marker-line-color:@yellow;
marker-allow-overlap:true;
marker-fill:@yellow;
marker-opacity:@opacity*1;
marker-line-color:@yellow;
marker-width:@width*3;
marker-line-width:@width;
marker-line-opacity:@opacity*1;
}
::highlight2 {
marker-line-color:@yellow;
marker-allow-overlap:true;
marker-fill:@yellow;
marker-opacity:@opacity*2;
marker-line-color:@yellow;
marker-width:@width*2;
marker-line-width:@width;
marker-line-opacity:@opacity*2;
}
::highlight3 {
marker-line-color:@yellow;
marker-allow-overlap:true;
marker-fill:@yellow;
marker-opacity:@opacity*3;
marker-line-color:@yellow;
marker-width:@width*1;
marker-line-width:@width;
marker-line-opacity:@opacity*3;
}
marker-allow-overlap:true;
marker-fill:lighten(@yellow,55%);
marker-opacity:.8;
marker-width:.5;
marker-line-color:#ffffff;
}
[zoom > 4] {
marker-allow-overlap:true;
::highlight{
marker-line-color:@yellow;
marker-allow-overlap:true;
marker-fill:@yellow;
marker-opacity:@opacity*1;
marker-line-color:@yellow;
marker-width:@width*7;
marker-line-width:@width;
marker-line-opacity:@opacity*1;
}
::highlight2 {
marker-line-color:@yellow;
marker-allow-overlap:true;
marker-fill:@yellow;
marker-opacity:@opacity*2;
marker-line-color:@yellow;
marker-width:@width*5;
marker-line-width:@width;
marker-line-opacity:@opacity*2;
}
::highlight3 {
marker-line-color:@yellow;
marker-allow-overlap:true;
marker-fill:@yellow;
marker-opacity:@opacity*3;
marker-line-color:@yellow;
marker-width:@width*3;
marker-line-width:@width;
marker-line-opacity:@opacity*3;
}
marker-allow-overlap:true;
marker-fill:lighten(@yellow,55%);
marker-opacity:.4;
marker-width:1;
marker-line-color:#ffffff;
}
}

#delauney {
line-color:lighten(@yellow,20%);//#E95C40;
line-width:0.2;
line-opacity:.3;
polygon-opacity:0;
polygon-fill:transparent;
}
210 changes: 210 additions & 0 deletions occupy-streets/legend.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,210 @@
<div class='wax-legend'>
<div class='my-legend'>
<div class='outer'>
<div class='inner'>
<div class='labels'><a href='http://directory.occupy.net' target='_blank'>Occupy Directory</a></div>
<div class='description'></div>
<div class='source'></div>
</div>
</div>
</div>
<style type='text/css'>
@font-face{font-family:'OstrichSansMedium';src:url(http://directory.occupy.net/sites/all/themes/ows/css/ostrichsans/ostrich-regular-webfont.eot);src:url(http://directory.occupy.net/sites/all/themes/ows/css/ostrichsans/ostrich-regular-webfont.eot?#iefix) format('embedded-opentype'),url(http://directory.occupy.net/sites/all/themes/ows/css/ostrichsans/ostrich-regular-webfont.woff) format('woff'),url(http://directory.occupy.net/sites/all/themes/ows/css/ostrichsans/ostrich-regular-webfont.ttf) format('truetype'),url(http://directory.occupy.net/sites/all/themes/ows/css/ostrichsans/ostrich-regular-webfont.svg#OstrichSansMedium) format('svg');font-weight:normal;font-style:normal;}

.wax-legends {
max-width:100% !important;
max-height:50px !important;
width:100% !important;
height:100px !important;
position:absolute !important;
bottom: 0px !important;
right: 0px !important;
overflow: hidden !important;
overflow-y: hidden !important;
overflow-x: hidden !important; }

.wax-legend {
max-width:100% !important;
max-height:50px !important;
width:100% !important;
height:auto !important;
position:absolute !important;
bottom: 0px !important;
top: 0px !important;
right: 0px !important;
left:0px !important
color: #ffffff !important;
overflow: hidden !important;
overflow-y: hidden !important;
overflow-x: hidden !important;
padding: 0px !important;
padding-bottom: 0px !important;
padding-top: 0px !important;
background: #363636 !important;
margin-top: 0px !important;
margin-bottom:0px !important;
margin-right:0px !important;
border-left-color: white !important;
border-left-style: solid !important;
border-left-width: 0px !important;
border-right-color: white !important;
border-right-style: solid !important;
border-right-width: 0px !important;
border-top-color: white !important;
border-top-left-radius: 3px !important;
border-top-right-radius: 3px !important;
border-top-style: solid !important;
border-top-width: 0px !important;
}

.wax-legend .outer {
position:absolute !important;
bottom:0px !important;
top:3px !important;
right:3px !important;
left:3px !important;
bottom:3px !important;
height:auto !important;
padding: 0px !important;
max-width:100% !important;
max-height:50px !important;
background-color: transparent !important;
border-bottom-color: white !important;
border-bottom-left-radius: 3px !important;
border-bottom-right-radius: 3px !important;
border-bottom-style: solid !important;
border-bottom-width: 1px !important;*/
border-left-color: white !important;
border-left-style: solid !important;
border-left-width: 1px !important;
border-right-color: white !important;
border-right-style: solid !important;
border-right-width: 1px !important;
border-top-color: white !important;
border-top-left-radius: 3px !important;
border-top-right-radius: 3px !important;
border-top-style: solid !important;
border-top-width: 1px !important;
border-radius: 3px !important;
-moz-border-radius: 3px !important;
-webkit-border-radius: 3px !important; }


.wax-legend .inner {
position:absolute !important;
bottom:0px !important;
top:5px !important;
margin-top:4px !important;
height:auto !important;
padding: 0px !important;
width:100%!important;
opacity:1 !important;
background-color:transparent!important;
}

.wax-legend .my-legend {
position:absolute !important;
background-color:transparent !important;
bottom:0px !important;
color: rgb(248, 248, 255) !important;
display:block;
float: none;
height:auto !important;
image-rendering: auto;
right: 0px !important;
letter-spacing: normal;
line-height: 20px !important;
list-style-image: none;
list-style-position: outside;
list-style-type: disc;
margin-bottom:0px !important;
margin-right:0px !important;
margin-top:0px !important;
max-height: 50px !important;
max-width: 100% !important;
min-height: 50px !important;
min-width: 100% !important;
overflow: hidden !important;
overflow-x: hidden !important;
overflow-y: hidden !important;
padding-bottom: 0px !important;
padding-left: 0px !important;
padding-right: 0px !important;
padding-top: 0px !important;
right: 0px !important;
text-align: -moz-center !important;
text-align:-webkit-center !important;
text-align:center !important;
text-decoration: none;
text-indent: 0px;
text-shadow: none;
text-transform: none;
top: 0px !important;
vertical-align: baseline;
visibility: visible;
white-space: normal;
widows: 2;
width: 100% !important;
word-break: normal;
word-spacing: 0px;
word-wrap: normal;
writing-mode: lr-tb;
z-index: auto;
zoom: 1; }

.wax-legend .title {
position: relative;
top: 15% !important;
width: 100% !important;
font-family:'PT Sans', 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', 'DejaVu Sans', 'Bitstream Vera Sans', 'Liberation Sans', Verdana, 'Verdana Ref', sans-serif !important;
text-align: center !important;
line-height: 12pt;
margin-bottom: 8px;
font-weight: bold !important;
font-size: 36pt !important;
background-color: transparent !important;
color: #ffffff !important;
}

.wax-legend .labels {
position: relative;
top: 5% !important;
right: 0px !important;
width: 100% !important;
text-align: center !important;
line-height: 12pt;
margin-top: 8px;
margin-bottom: 8px;
font-weight: 800 !important;
font-size: 22pt !important;
font-style:normal;
background-color: transparent !important;
color: #ffffff !important;
}


.wax-legend .description {
position: relative;
top: 50% !important;
max-width: 90% !important;
margin:auto !important;
text-align: left !important;
margin-bottom: 5px !important;
background-color: transparent !important;
}

.wax-legend .description p {
line-height:12px !important;
margin-top:5px !important;
margin-bottom:5px !important;
}

.wax-legend a {
color:#29A1E1 !important; }
.wax-legend .source p,
.wax-legend .source span {
line-height: 12px !important;}
.wax-legend a:hover {
color:#fff!important;
}
</style>
Loading

0 comments on commit e17e806

Please sign in to comment.