diff --git a/apps/mylocation/interface.html b/apps/mylocation/interface.html
index 29989a368..78141c400 100644
--- a/apps/mylocation/interface.html
+++ b/apps/mylocation/interface.html
@@ -35,9 +35,9 @@
Click the map to select a location
-
-
-
+
+
+
@@ -82,7 +82,7 @@
document.getElementById("select-hint").style.display="none";
document.getElementById("select").style.display="";
- document.getElementById("find-marker").style.display="";
+ document.getElementById("locate-marker").style.display="";
}
map.on('click', function(e){
@@ -97,12 +97,12 @@
return {lat: file.lat, lng: file.lon};
}
- document.getElementById("locate").addEventListener("click", function() {
+ document.getElementById("locate-me").addEventListener("click", function() {
map.locate({setView: true, maxZoom: 16, enableHighAccuracy:true});
});
- document.getElementById("find-marker").addEventListener("click", function() {
- if(latlon && latlon.lng && latlon.lat) {
+ document.getElementById("locate-marker").addEventListener("click", function() {
+ if (latlon && latlon.lng != null && latlon.lat != null) {
map.setView(latlon);
}
});