summaryrefslogtreecommitdiff
path: root/snap.html
diff options
context:
space:
mode:
authorCode WvS <code-wvs@quantentunnel.de>2015-02-27 19:13:00 +0100
committerCode WvS <code-wvs@quantentunnel.de>2015-02-27 19:13:00 +0100
commit35d3ec1170634e2330eb1a1493d38510081a95ad (patch)
tree1b1245b75217492304871581d9e92e7958ad7c31 /snap.html
parent4a0c39c1d2249dca7ff0eff02ac8ed7789d84b57 (diff)
downloadsnap-yow-35d3ec1170634e2330eb1a1493d38510081a95ad.tar.gz
snap-yow-35d3ec1170634e2330eb1a1493d38510081a95ad.zip
forward keypresses to Snap
Diffstat (limited to 'snap.html')
-rwxr-xr-xsnap.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/snap.html b/snap.html
index 57a51cf..3c4a9e4 100755
--- a/snap.html
+++ b/snap.html
@@ -55,7 +55,7 @@
window.geoposition = e.latlng;
}
- function startYOW (e) {
+ function startYOW () {
new OSMBuildings(map).load();
window.spriteGroup = spriteGroup;
@@ -90,7 +90,10 @@
window.map = map;
window.layer = layer;
- map = L.map('map');
+ map = L.map('map', {
+ keyboard: false
+ });
+ map.on('mouseover', function() {document.getElementById('world').focus();});
map.on('locationfound', loadDefaultCostume);
map.locate({setView: true});
layer = L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {