Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TASKS #1

Open
8 of 11 tasks
SofiaFasullo opened this issue Sep 28, 2022 · 0 comments
Open
8 of 11 tasks

TASKS #1

SofiaFasullo opened this issue Sep 28, 2022 · 0 comments

Comments

@SofiaFasullo
Copy link
Owner

SofiaFasullo commented Sep 28, 2022

  • Create an index.html with a basic HTML page structure
  • Create an empty CSS file for the project
  • Create an empty JavaScrip file for the project
  • Link to the empty CSS file from the bottom of the head of your HTML file
  • Link to the empty JavaScript file from the bottom of the body of your HTML file
  • Add a level-1 heading (h1) to the body with the app title, just so there's something to see on the page

Check the app in the browser.

  • Add a Leaflet map for displaying the list of schools to the page
    • Tip: Usually when I'm starting with a new leaflet map, I just Google "leaflet quickstart" and copy a few things from that page. Other times I may use a CDN like
    • Recommendation: Give your map a meaningful ID -- something like school-map, and then name the corresponding JavaScript variable something similar, e.g. schoolMap.
  • Import the data from site/data/schools.js into your JavaScript file.
  • Create a function called makeSchoolFeature to transform one of the school elements into a GeoJSON-like feature. This function should be made available globally (on the window object).
  • Use the function to display all the schools data on the map.
  • Create a function to show an array of schools on the map.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant