← Methods 3

In-class Exercises

HTML

  1. Download today's data.
  2. Upload the zipped shapefile to your Carto account (selected-parks.zip). This is from the NYC Open Data portal, filtered to a few types of parks and playgrounds.
  3. Make a map using the data.
  4. Let's add a link back to the source (NYC Open Data portal). Add a legend, edit the HTML for it, and add this at the bottom of the legend (you can copy and paste it):
    <p>
        Data from <a href="https://data.cityofnewyork.us/Recreation/Parks-Properties/enfh-gkve">NYC Open Data portal</a>
    </p>
  5. Let's link to each park's website. Add a popup for the layer and add the url field to it. Then edit the HTML and find {{url}} in it. Replace {{url}} with this:
    <a href="{{url}}">Learn more</a>
  6. If you want the links to open in their own tab, use this instead:
    <a href="{{url}}" target="_blank">Learn more</a>