From 5eeee705bcd55d375c0be9e113abd6481c3a570d Mon Sep 17 00:00:00 2001 From: Code WvS Date: Fri, 27 Feb 2015 18:29:57 +0100 Subject: fix loading problems --- snap.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'snap.html') diff --git a/snap.html b/snap.html index 8a2f6de..57a51cf 100755 --- a/snap.html +++ b/snap.html @@ -6,7 +6,7 @@ - + @@ -56,11 +56,6 @@ } function startYOW (e) { - setGlobalPosition(e); - map.stopLocate(); - map.on('locationfound', setGlobalPosition); - map.locate({watch: true, enableHighAccuracy: true}); - new OSMBuildings(map).load(); window.spriteGroup = spriteGroup; @@ -74,6 +69,11 @@ // TODO: this needs to be improved function loadDefaultCostume (e) { + setGlobalPosition(e); + map.stopLocate(); + map.on('locationfound', setGlobalPosition); + map.locate({watch: true, enableHighAccuracy: true}); + image = new Image(); image.src = 'images/marker-icon.png'; image.onload = function () { -- cgit v1.3.1