Skip to content

Instantly share code, notes, and snippets.

@danswick
Created April 9, 2020 00:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danswick/29c9287ce7a1788e0896ebdb5ed2fcd0 to your computer and use it in GitHub Desktop.
Save danswick/29c9287ce7a1788e0896ebdb5ed2fcd0 to your computer and use it in GitHub Desktop.
Baygeo class 3 agenda

Agenda

Recap homework

Prep for next week Go to https://evictionlab.org/map/ and spend some time looking around and exploring the data. Then give yourself 5 minutes to write down as many types of interactions as you can.

How web maps work

  1. What is the difference between raster and vector data?
  2. How are “slippy maps” different from the early Mapquest maps we looked at in class?
  3. How has web map rendering changed over the years?

Intro to web map rendering

  1. What is the basemap-overlay paradigm and how are GL maps different?
  2. What does client-side rendering mean in the context of web maps?
  3. Why is it possible for Mapbox GL JS to place labels dynamically as you interact with the map?

Code exercises Do you best to attempt each of these. We’ll go through them as a class next week.

  1. Using geojson.io, trace the outline of your childhood home. Using the skills we’ve learned in class, add your new GeoJSON to a Mapbox GL JS map. Here is an example you can look at for guidance: Mapbox GL JS polygon example.
  2. JavaScript fundamentals: spend some time working through the prompts on these pages. They introduce some fundamental JavaScript concepts and guide you through a few basic exercises:
    1. Variables: https://observablehq.com/@danswick/intro-to-javascript-variables
    2. Objects: https://repl.it/@danswick/objects-intro
    3. Functions: https://repl.it/@danswick/Functions
    4. Loops: https://repl.it/@danswick/loops

Small group discussion: eviction lab interactions

Prerequisites: make sure you're logged in to our class Slack! If you haven't yet, click here to join.

Group table:

Group Name 1 Name 2
1 Ryan Martha
2 Elias Adrienne
3 James Greer

Get into pairs and start a Slack call with your partner:

  1. Get into a direct message with your partner. Click the ➕ sign next to the "Direct messages" thing on the left of Slack.
  2. Click the little 📞 icon in the top right to start your call.
  3. Spend a few minutes talking about what you found and what you noticed as you got acquainted with the evictionlab map.
  4. Pick your two favorite features of this map and note why they're you're favorite.
  5. Come back to the class zoom and we'll discuss what everyone found.

Interactivity lecture

Slides are here: https://docs.google.com/presentation/d/1n3ELsxyMd2tZ146RBpFonZb7-we9BKXhW65dEwl4jdg/edit#slide=id.g6e50af33cb_0_119

Pair programming: interactions!

Prerequisite: make sure you're logged in using the VS Code Live Share plugin.

Group Name 1 Name 2 Interactivity
1 Ryan Elias Add a popup
2 James Adrienne Add pan & zoom controls
3 Martha Greer Add a geolocate button
  1. Get into pairs again and start up another Slack call.
  2. Assign one of you to create a new file in VS Code called "pairing.html". Paste the contents of this HTML file into your new file.
  3. In the pairing table above, you've been assigned one type of interaction. Find the prompt for your interaction in a code comment and do your best to implement the prompt together in your pairing session.

Events lecture

Slides are here: https://docs.google.com/presentation/d/1wd4UNWyPX1VMut9iQkqvbnftbmn_MSWLykpAYJlN9_0/edit#slide=id.g6e50af33cb_0_119

Marker & Popup code-together file: https://github.com/mapbox/web-mapping-curriculum/blob/master/class-2/in-class-exercises/mapbox-gl-js-ct.html

Pair programming: bug hunting!

Bug hunting file here: https://github.com/mapbox/web-mapping-curriculum/blob/master/class-3/in-class-exercises/ct-bug-hunting.html

Group Name 1 Name 2
1 Martha James
2 Ryan Adrienne
3 Elias Greer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment