Patrick Brosi 4 év óta
szülő
commit
a988142cca
2 módosított fájl, 4 hozzáadás és 4 törlés
  1. 1 1
      src/osmfixer/server/StatServer.cpp
  2. 3 3
      web/script.js

+ 1 - 1
src/osmfixer/server/StatServer.cpp

@@ -707,7 +707,7 @@ util::http::Answer StatServer::handleGroupReq(const Params& pars) const {
707 707
       json << seper << "{\"type\":8,\"attr\":\"" << sugg->attrErrName << "\""
708 708
            << "}";
709 709
     } else if (sugg->type == 9) {
710
-      json << seper << "{\"type\":9,\"target_gid\":" << sugg->target_gid << ",\"target_osm_rel_id\":" << sugg->target_osm_rel_id
710
+      json << seper << "{\"type\":9,\"target_gid\":" << (sugg->target_gid + range.gidStart) << ",\"target_osm_rel_id\":" << sugg->target_osm_rel_id
711 711
            << "}";
712 712
     } else if (sugg->type == 10) {
713 713
       json << seper << "{\"type\":10,\"target_gid\":" << sugg->target_gid << ",\"target_osm_rel_id\":" << sugg->target_osm_rel_id

+ 3 - 3
web/script.js

@@ -441,7 +441,7 @@ var map = L.map('m', {renderer: L.canvas(), attributionControl: false}).setView(
441 441
 
442 442
 map.addControl(L.control.attribution({
443 443
     position: 'bottomright',
444
-    prefix: '&copy; <a href="http://ad.cs.uni-freiburg.de">University of Freiburg, Chair of Algorithms and Data Structures</a>'
444
+    prefix: '&copy; <a href="https://ad.cs.uni-freiburg.de">University of Freiburg, Chair of Algorithms and Data Structures</a>'
445 445
 }));
446 446
 
447 447
 map.on('popupopen', function(e) {
@@ -454,9 +454,9 @@ map.on('popupopen', function(e) {
454 454
     s();
455 455
 });
456 456
 
457
-L.tileLayer('http://{s}.tile.stamen.com/toner-lite/{z}/{x}/{y}.png', {
457
+L.tileLayer('https://stamen-tiles-{s}.a.ssl.fastly.net/toner-lite/{z}/{x}/{y}.png', {
458 458
     maxZoom: 20,
459
-    attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>',
459
+    attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',
460 460
     opacity: 0.8
461 461
 }).addTo(map);
462 462