1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

move this over to test machine

This commit is contained in:
George Hunt 2019-04-03 12:11:32 -07:00
parent 209d75f9d3
commit 9b8e2e8ae8
3 changed files with 14 additions and 9 deletions

View file

@ -1 +1,3 @@
menu_def_dir: '{{ doc_root }}/js-menu/menu-files/menu-defs' menu_def_dir: '{{ doc_root }}/js-menu/menu-files/menu-defs'
osm_vector_path: '{{ content_base }}/osm-vector'
iiab_osm_url : http://download.iiab.io/content/OSM/vector-tiles

View file

@ -17,10 +17,11 @@
dest: '{{ osm_vector_path }}/assets' dest: '{{ osm_vector_path }}/assets'
- name: Fetch the index.html for test page - name: Fetch the index.html for test page
get_url: template:
url: "{{ iiab_osm_url }}/assets/index.html.template" src: "test-index.html"
dest: '{{ osm_vector_path }}/assets/index.html' dest: '{{ osm_vector_path }}/assets/index.html'
# Wanted to generate on the fly. But geofabrik has non-rectangular bboxes
- name: Fetch the bounding box description for osm maps - name: Fetch the bounding box description for osm maps
get_url: get_url:
url: "{{ iiab_osm_url }}/assets/bboxes.geojson" url: "{{ iiab_osm_url }}/assets/bboxes.geojson"
@ -72,7 +73,7 @@
- name: Copy the php redirect to the splash page - name: Copy the php redirect to the splash page
copy: copy:
src: splash-index.redirect src: test-index.redirect
dest: "{{ osm_vector_path }}/index.html" dest: "{{ osm_vector_path }}/index.html"
- name: Determine status of splash menu def - name: Determine status of splash menu def

View file

@ -4,9 +4,7 @@
<title>Osm-Vector Splash Page</title> <title>Osm-Vector Splash Page</title>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/common/css/bootstrap.min.css"> <script src='/common/js/jquery.min.js'></script>
<script src="/common/js/jquery.min.js"></script>
<script src="/common/js/bootstrap.min.js"></script>
</head> </head>
<body> <body>
@ -46,8 +44,12 @@
return (bytes / Math.pow(1024, e)).toFixed(2) + " " + s[e]; return (bytes / Math.pow(1024, e)).toFixed(2) + " " + s[e];
} }
</script> </script>
<script src="/admin/js/map_functions.js"></script> <script src="osm_functions.js"></script>
<script src="/common/assets/map.js"></script> <script>
window.$ = window.$ = jQuery;
$.when(readOsmCatalog()).done(function() {
renderRegionList(false);
});
</script>
</body> </body>
</html> </html>