diff options
| author | Code WvS <code-wvs@quantentunnel.de> | 2015-02-27 19:13:00 +0100 |
|---|---|---|
| committer | Code WvS <code-wvs@quantentunnel.de> | 2015-02-27 19:13:00 +0100 |
| commit | 35d3ec1170634e2330eb1a1493d38510081a95ad (patch) | |
| tree | 1b1245b75217492304871581d9e92e7958ad7c31 /snap.html | |
| parent | 4a0c39c1d2249dca7ff0eff02ac8ed7789d84b57 (diff) | |
| download | snap-yow-35d3ec1170634e2330eb1a1493d38510081a95ad.tar.gz snap-yow-35d3ec1170634e2330eb1a1493d38510081a95ad.zip | |
forward keypresses to Snap
Diffstat (limited to 'snap.html')
| -rwxr-xr-x | snap.html | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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', { |
