2 import { onMount } from 'svelte';
3 import { fetch_from_api, update_html_title } from '../lib/api_utils.js';
4 import { detailsURL, osmLink } from '../lib/helpers.js';
9 fetch_from_api('deletable', {format: 'json'}, function(data){
12 update_html_title('Deletable objects');
17 <div class="container">
19 <div class="col-sm-12">
23 {aPolygons.length} objects have been deleted in OSM but are still in the Nominatim database.
26 <table class="table table-striped table-hover">
37 {#each aPolygons as polygon}
39 <td><a href="{detailsURL(polygon)}">{polygon.place_id}</a></td>
40 <td>{polygon.country_code}</td>
41 <td>{polygon.name}</td>
42 <td>{@html osmLink(polygon)}</td>
43 <td>{polygon.osm_type}</td>
44 <td>{polygon.class}</td>
45 <td>{polygon.type}</td>