summaryrefslogtreecommitdiff
path: root/snap.html
diff options
context:
space:
mode:
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', {