forked from edward/owl-map
WIP
This commit is contained in:
parent
89c45883ad
commit
77c7d520cd
|
@ -146,7 +146,12 @@ function update_wikidata(check_for_missing = true) {
|
|||
}
|
||||
|
||||
if (missing_qids.length) {
|
||||
var params = { qids: missing_qids.join(",") };
|
||||
var c = map.getCenter();
|
||||
var params = {
|
||||
qids: missing_qids.join(","),
|
||||
lat: c.lat.toFixed(5),
|
||||
lon: c.lng.toFixed(5),
|
||||
};
|
||||
axios.get(missing_url, { params: params }).then((response) => {
|
||||
response.data.isa_count.forEach((isa) => {
|
||||
isa_labels[isa.qid] = isa.label;
|
||||
|
@ -437,7 +442,6 @@ function open_detail(qid) {
|
|||
|
||||
var item_osm_candidates_url = `/api/1/item/${qid}/candidates`;
|
||||
var bounds = map.getBounds();
|
||||
|
||||
var params = { bounds: bounds.toBBoxString() };
|
||||
|
||||
axios
|
||||
|
|
|
@ -177,7 +177,7 @@ def get_markers(all_items):
|
|||
"markers": locations,
|
||||
"image_list": image_filenames,
|
||||
"street_address": street_address,
|
||||
"isa_list": [v["id"] for v in item.get_claim("P31")],
|
||||
"isa_list": [v["id"] for v in item.get_claim("P31") if v],
|
||||
}
|
||||
items.append(item)
|
||||
|
||||
|
|
Loading…
Reference in a new issue