]> git.openstreetmap.org Git - nominatim-ui.git/blob - src/assets/js/polygons.js
fix URL links when serving app from a subdirectory
[nominatim-ui.git] / src / assets / js / polygons.js
1 // *********************************************************
2 // BROKEN POLYGON PAGE
3 // *********************************************************
4
5 function polygons_page_load() {
6   //
7   var api_request_params = {
8     format: 'json'
9   };
10
11   fetch_from_api('polygons', api_request_params, function (aPolygons) {
12     var context = { aPolygons: aPolygons };
13
14     render_template($('main'), 'polygons-template', context);
15     update_html_title('Broken polygons');
16
17     update_data_date();
18   });
19 }