Command Palette

Search for a command to run...

Hectal
Phase 13: Maps, Hierarchies and Networks
Data Visualization · Exercise 4 of 4 Previous
Advanced

A map with an empty state

drawDots(stations) draws a circle for each station. With an empty list it leaves a blank box.

When the list is empty, show #note with the text No stations to show, and hide it again when stations are drawn. Skip any station whose lon or lat is not a number.

What Check tests

  1. Two good stations draw two circles
  2. A station with NaN is skipped
  3. An empty list shows the message

Stuck? One hint at a time

The solution unlocks after your first Check. Try first: that is where the learning happens.

Runs in your browser. Your code is saved here.

Your page

Press Run to see the page.

Console

Nothing logged yet.