Patrick Brosi 4 yıl önce
ebeveyn
işleme
671536d0aa

+ 3 - 0
src/osmfixer/index/StatIdx.cpp

@@ -469,6 +469,9 @@ void StatIdx::initSuggestions() {
469 469
           sug.target_gid = stat.group;
470 470
           sug.target_osm_rel_id = getGroup(stat.group)->osmid;
471 471
 
472
+          auto b = util::geo::centroid(getGroup(stat.group)->poly);
473
+          sug.arrow = getGroupArrow(i, b);
474
+
472 475
           _suggestions.push_back(sug);
473 476
           stat.suggestions.push_back(_suggestions.size() - 1);
474 477
         } else {

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

@@ -166,7 +166,7 @@ util::http::Answer StatServer::handleMapReq(const Params& pars) const {
166 166
   auto gret = _idx->getGroups(bbox);
167 167
   sep = ' ';
168 168
   for (auto group : gret) {
169
-    if (group->polyStations.size() == 1) continue;
169
+    if (group->polyStations.size() == 1 && group->osmid < 2) continue;
170 170
     json << sep;
171 171
     sep = ',';
172 172
     printGroup(group, &json);