2 import { onMount } from 'svelte';
3 import { fetch_from_api, update_html_title } from '../lib/api_utils.js';
4 import { osmLink } from '../lib/helpers.js';
6 import Header from '../components/Header.svelte';
7 import DetailsLink from '../components/DetailsLink.svelte';
12 fetch_from_api('deletable', { format: 'json' }, function (data) {
15 update_html_title('Deletable objects');
21 <div class="container">
23 <div class="col-sm-12">
27 {aPolygons.length} objects have been deleted in OSM but are still in the Nominatim database.
30 <table class="table table-striped table-hover">
41 {#each aPolygons as polygon}
43 <td><DetailsLink feature={polygon}>{polygon.place_id}</DetailsLink></td>
44 <td>{polygon.country_code}</td>
45 <td>{polygon.name}</td>
46 <td>{@html osmLink(polygon)}</td>
47 <td>{polygon.osm_type}</td>
48 <td>{polygon.class}</td>
49 <td>{polygon.type}</td>