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 DetailsLink from '../components/DetailsLink.svelte';
11 fetch_from_api('deletable', { format: 'json' }, function (data) {
14 update_html_title('Deletable objects');
19 <div class="container">
21 <div class="col-sm-12">
25 {aPolygons.length} objects have been deleted in OSM but are still in the Nominatim database.
28 <table class="table table-striped table-hover">
39 {#each aPolygons as polygon}
41 <td><DetailsLink feature={polygon}>{polygon.place_id}</DetailsLink></td>
42 <td>{polygon.country_code}</td>
43 <td>{polygon.name}</td>
44 <td>{@html osmLink(polygon)}</td>
45 <td>{polygon.osm_type}</td>
46 <td>{polygon.class}</td>
47 <td>{polygon.type}</td>