Skip to content

TagSpaces is an offline, open source, document manager with tagging support

update

kristiyanddf0986f4e10c8
diff --git a/data/js/core.ui.js b/data/js/core.ui.js
index a3ca09c78..9d8a112f0 100644
--- a/data/js/core.ui.js
+++ b/data/js/core.ui.js
@@ -730,6 +730,12 @@ define(function(require, exports, module) {
detectRetina: true
};
var tagSpacesMap = L.map('mapTag', tagSpacesMapOptions).setView([51.505, -0.09], 13);
+ L.control.locate({
+ position: 'topright',
+ strings: {
+ title: $.i18n.t('ns.dialogs:yourLocation') //
+ }
+ }).addTo(tagSpacesMap);
var marker;
function showGeoLocation() {
@@ -757,6 +763,7 @@ define(function(require, exports, module) {
//}
marker = new L.marker(e.latlng).update().addTo(tagSpacesMap);
}
+
//tagSpacesMap.removeOverlay(marker);
tagSpacesMap.on('click', onMapClick);
@@ -795,13 +802,6 @@ define(function(require, exports, module) {
}
});
- //tagSpacesMap.control.locate({
- // position: 'topright',
- // strings: {
- // title: $.i18n.t('ns.dialogs:yourLocation') //
- // }
- //}).addTo(tagSpacesMap);
-
var regPattern = /^([^\ #/\\]){1,}$/;
//console.log("TAG UTILS");
//console.log(TSCORE.selectedTag);