Permalink
Browse files

Added some comments to explain the slightly odd looking JS style.

  • Loading branch information...
1 parent 8866260 commit a188ee886bdd3bde6d7b685ee3cbfb50ecfcd508 @malcolmt committed Nov 19, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 media/js/map-display.js
@@ -1,4 +1,6 @@
+// Although this example doesn't access "map" outside of init(), one will typically be using it in a few different callback methods, so it makes sense to store it (and associated map data) at this level.
var map;
+
// The bounding box and centre of the region we're interested in displaying.
var ul_lon = 150.0;
var ul_lat = 0.0;

0 comments on commit a188ee8

Please sign in to comment.