Welcome to Advanced GIS, Lecture 2
This is a web page that can be viewed as slides.
→ to move forward
← to go back
“My favorite part about this project is that it really does make more sense to fly a kite with a camera on it than to try to take pictures of where you are all the way from space. You’re literally holding the camera thousands of feet in the air with a string — it’s a very visceral experience.”
Taking On the Gulf Oil Spill With Kites and Cameraswhere you import, edit, and analyze your data
you can upload:
where you make public map views of your datasets
(it's just text)
Looks similar to but is otherwise completely separate from CSS.
Looks similar to but is otherwise completely separate from CSS.
CSS adds style (font styles, color) to webpages, CartoCSS does the same for maps.
#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-fill: #ff307a;
    marker-line-color: #FFF;
    marker-line-width: 0.25;
    marker-line-opacity: 0.4;
    marker-width: 2;
    marker-allow-overlap: true;
}
        #layer
        #layer {
        #layer {
}
        #layer {
}
            otherwise your statement will never end!
#layer {
  marker-fill: #ff307a;
}
        #layer {
  marker-fill: #ff307a;
}
            always one per line, each line ending with a ;
#layer {
  marker-fill: #ff307a;
  marker-line-color: #FFF;
}
        #layer {
  marker-fill: #ff307a;
  marker-line-color: #FFF;
}
            #layer {
  marker-fill: #ff307a;
  marker-line-color: #FFF;
}
marker-width: 5;
        #layer {
  marker-fill: #ff307a;
  marker-line-color: #FFF;
}
marker-width: 5;
            #layer {
  marker-fill: #ff307a;
  marker-line-color: #FFF;
}
marker-width: 5;
            #layer {
  polygon-fill: #826DBA;
  polygon-opacity: 0.9;
}
#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;
  }
}
        #layer {
  marker-width: 3;
  [zoom >= 10] {
    marker-width: 8;
  }
}
            "make the markers 3 pixels wide. if the map is at zoom level 10 or higher, make the markers 8 pixels wide."
#layer {
  marker-width: 3;
  [zoom >= 10] {
    marker-width: 8;
  }
  [zoom >= 16] {
    marker-width: 13;
  }
}
        #layer[zoom < 10] {
  marker-fill: blue;
  marker-allow-overlap: true;
  marker-width: 10;
}
        #layer[zoom < 10] {
  marker-fill: blue;
  marker-allow-overlap: true;
  marker-width: 10;
}
            #layer[zoom < 10] {
  marker-fill: blue;
  marker-allow-overlap: true;
  marker-width: 10;
}
            #layer {
  marker-width: 3;
  [bright_ti4 >= 350] {
    marker-width: 8;
  }
}
        #layer {
  marker-width: 3;
  [confidence = 'low'] {
    marker-width: 8;
  }
}
        #layer {
  marker-width: 3;
  [bright_ti4 > 350][confidence = 'low'] {
    marker-width: 8;
  }
}
        #layer {
  marker-width: 3;
  [bright_ti4 > 350][confidence = 'low'] {
    marker-width: 8;
  }
}
            make markers where bright_ti4 is greater than 350 and location = "low" larger
[bright_ti4 >= 350] {
}
        [bright_ti4 >= 300][bright_ti4 < 350] {
}
            both conditions must be true
#layer {
  [bright_ti4 >= 7] {
  }
  [zoom >= 11] {
  }
  [zoom >= 12] {
  }
}
        #layer {
  marker-width: 3;
  marker-fill: ramp([bright_ti4], (#fbe6c5,
    #f2a28a, #dc7176, #b24b65, #70284a), jenks);
  marker-fill-opacity: 1;
  marker-allow-overlap: true;
  marker-line-width: 1;
  marker-line-color: #FFFFFF;
  marker-line-opacity: 1;
}
        
  marker-fill: ramp([bright_ti4], (#fbe6c5,
    #f2a28a, #dc7176, #b24b65, #70284a), jenks);