summaryrefslogtreecommitdiff
path: root/snap.html
diff options
context:
space:
mode:
Diffstat (limited to 'snap.html')
-rwxr-xr-xsnap.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/snap.html b/snap.html
index ab02c64..611581a 100755
--- a/snap.html
+++ b/snap.html
@@ -112,6 +112,11 @@
// OSMBuildings provides fancy 3D buildings
new OSMBuildings(map).load();
+ // A Sprite's X position is mapped to longitude
+ // A Sprite's Y position is mapped to latitude
+ // The stage has -x left and +x right,
+ // -y top and +y bottom but we want
+ // +y top and -y bottom.
window.spriteGroup = spriteGroup;
spriteGroup = L.layerGroup().addTo(map);