Application overview

The mapviewer project is a Dart web application with an index.html entry point that kicks off the application on main.dart:

main() async {
  quakeMap = new MapDisplay(querySelector('#mapview'), width, height);
  await quakeMap.loadImage();

  featPlotter = new FeaturePlotter(width, height, quakeMap.mapCtx);

  quakeMap.showPopup = showPopup;


  new Timer.periodic(new Duration(seconds: 60), quakeUpdate);
  new Timer.periodic(new Duration(milliseconds: 100), animationUpdate);

The MapDisplay class sets up the map on the web page (on the div element with the ID mapview ...

Get Dart: Scalable Application Development now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.