Welcome to Methods 3, Lecture 9
This is a web page that can be viewed as slides.
→ to move forward
← to go back
#layer {
marker-width: 9;
marker-fill: #004cff;
marker-fill-opacity: 0.9;
marker-allow-overlap: true;
marker-line-width: 0;
marker-line-color: #FFFFFF;
marker-line-opacity: 1;
[zoom < 14] {marker-width: 0;}
[description = 'zoom-out'] {marker-fill: white; }
[description = 'zoom-out'][zoom < 14] {marker-width:9; }
[description = 'zoom-out'][zoom > 13] {marker-width:0; }
}
#layer['mapnik::geometry_type'=1] {
marker-width: 7;
marker-fill: #EE4D5A;
marker-fill-opacity: 0.9;
marker-line-color: #FFFFFF;
marker-line-width: 1;
marker-line-opacity: 0;
marker-type: ellipse;
marker-allow-overlap: true;
[zoom<=13]{marker-width:2}
[zoom>=14]{marker-width:4}
[vehicle_ty='Bike'] {marker-width:8}
[vehicle_ty='Bike'] {marker-fill:#22ac00}
}
#layer {
polygon-fill: #826DBA;
polygon-opacity: 1;
[zoom>15] {polygon-opacity:.2}
}
#layer::outline {
line-width: 1;
line-color: #FFFFFF;
line-opacity: 0.5;
}
#layer {
marker-fill: #ff307a;
marker-line-color: #FFF;
marker-line-width: 0.25;
marker-line-opacity: 0.4;
marker-width: 2;
marker-allow-overlap: true;
}
#layer {
marker-width: 3;
...
[zoom >= 10] {
marker-width: 8;
}
[zoom >= 16] {
marker-width: 15;
}
}
"We enlisted people to go to stops, measure traffic and count people getting off and on and we hired bike messengers to see where the buses went..."
source"... The cyclists used Field Papers to transcribe the various routes and what they found out, which we recompiled back into a database of trips, stops, companies and frequency."
source<p>
<a href="http://data.cityofnewyork.us">source</a>
</p>
<p>some text on a web page</p>
<p>
<p>
the paragraph opening tag
<p>
the paragraph opening tag
opening tags always start with
<
<p>
the paragraph opening tag
opening tags always start with
<
and end with
>
</p>
the paragraph closing tag
</p>
the paragraph closing tag
closing tags always start with
</
and end with
>
<p>some text on a web page</p>
<a href="http://data.cityofnewyork.us">source</a>
{{}} around a field name will be replaced by the value of that field for the feature you clicked{{neighbourhood}}, {{neighbourhood_group}}{{neighbourhood}}, {{neighbourhood_group}}
becomes
SoHo, Manhattan
<p>
<a href="http://data.cityofnewyork.us">source</a>
</p>
<p>
<a href="{{url}}">learn more</a>
</p>
<p>
<a href="{{url}}">learn more</a>
</p>
url)makes things look nice
<p>
some text on a web page
</p>
<p style="font-size: 20px;">
some text on a web page
</p>
<div class="CDB-infowindow">
<div class="CDB-infowindow" style="color: green;">
<img src="http://i.ytimg.com/cat.jpg" />