TagSpaces is an offline, open source, document manager with tagging support
update ui
kristiyandd4036ff2bde0b
diff --git a/data/index.html b/data/index.htmlindex cfe9bf5c1..f3b34a005 100644--- a/data/index.html+++ b/data/index.html@@ -660,7 +660,7 @@</div><div class="tab-pane" id="geoLocation"><div class="form-group">- <div id="mapTag" class="map map-home" style="height: 100%; margin-top: 10px"></div>+ <div id="mapTag" style="width: 100%; height: 400px;"></div></div></div></div>diff --git a/data/js/core.ui.js b/data/js/core.ui.jsindex 60d7a0087..439429d58 100644--- a/data/js/core.ui.js+++ b/data/js/core.ui.js@@ -692,15 +692,33 @@ define(function(require, exports, module) {var ACCESS_TOKEN = 'pk.eyJ1Ijoia3Jpc3RpeWFuZGQiLCJhIjoiY2lweHVlam5rMDA3Y2k0bTJ4Z3l2ZzFxdyJ9.6pyZff5AHe9xPRX7FcjwCw';var MB_ATTR = 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, ';- var MB_URL = 'https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=' + ACCESS_TOKEN;+ var MB_URL = 'https://api.mapbox.com/styles/v1/mapbox/streets-v9/tiles/256/{z}/{x}/{y}?access_token=' + ACCESS_TOKEN;var OSM_URL = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';var OSM_ATTRIB = '';var mapContent = L.map('mapTag').setView([51.505, -0.09], 13);- L.tileLayer('https://api.mapbox.com/styles/v1/mapbox/streets-v9/tiles/256/{z}/{x}/{y}?access_token=' + ACCESS_TOKEN, {+ L.tileLayer(MB_URL, {attribution: MB_ATTR,id: 'mapbox.streets'}).addTo(mapContent);++ //var marker;+ //mapContent.on('click', function(e) {+ // if (!marker) {+ // marker = L.marker(e.latlng).addTo(mapContent);+ // }+ //});+ //+ //$('#dialogEditTag').on('shown', function() {+ // L.Util.requestAnimFrame(mapContent.invalidateSize, mapContent, !1, mapContent._container);+ //});+ //+ //$('#dialogEditTag').on('hidden', function() {+ // if (marker) {+ // mapContent.removeLayer(marker);+ // marker = null;+ // }+ //});}function showTagEditDialog() {