From 35d3ec1170634e2330eb1a1493d38510081a95ad Mon Sep 17 00:00:00 2001 From: Code WvS Date: Fri, 27 Feb 2015 19:13:00 +0100 Subject: forward keypresses to Snap --- snap.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'snap.html') 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', { -- cgit v1.3.1