<script>
import { onMount } from 'svelte';
import { fetch_from_api, update_html_title } from '../lib/api_utils.js';
- import { detailsURL, osmLink } from '../lib/helpers.js';
+ import { osmLink } from '../lib/helpers.js';
+
+ import Header from '../components/Header.svelte';
+ import DetailsLink from '../components/DetailsLink.svelte';
let aPolygons = [];
onMount(loaddata);
</script>
+<Header/>
<div class="container">
<div class="row">
<div class="col-sm-12">
<tbody>
{#each aPolygons as polygon}
<tr>
- <td><a href="{detailsURL(polygon)}">{polygon.place_id}</a></td>
+ <td><DetailsLink feature={polygon}>{polygon.place_id}</DetailsLink></td>
<td>{polygon.country_code}</td>
<td>{polygon.name}</td>
<td>{@html osmLink(polygon)}</td>