mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 11:42:08 +00:00
move this over to test machine
This commit is contained in:
parent
9f96b12831
commit
3646fd1a5d
3 changed files with 14 additions and 9 deletions
|
@ -1 +1,3 @@
|
|||
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
|
||||
|
|
|
@ -17,10 +17,11 @@
|
|||
dest: '{{ osm_vector_path }}/assets'
|
||||
|
||||
- name: Fetch the index.html for test page
|
||||
get_url:
|
||||
url: "{{ iiab_osm_url }}/assets/index.html.template"
|
||||
template:
|
||||
src: "test-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
|
||||
get_url:
|
||||
url: "{{ iiab_osm_url }}/assets/bboxes.geojson"
|
||||
|
@ -72,7 +73,7 @@
|
|||
|
||||
- name: Copy the php redirect to the splash page
|
||||
copy:
|
||||
src: splash-index.redirect
|
||||
src: test-index.redirect
|
||||
dest: "{{ osm_vector_path }}/index.html"
|
||||
|
||||
- name: Determine status of splash menu def
|
||||
|
|
|
@ -4,9 +4,7 @@
|
|||
<title>Osm-Vector Splash Page</title>
|
||||
<meta charset="utf-8">
|
||||
<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/bootstrap.min.js"></script>
|
||||
<script src='/common/js/jquery.min.js'></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
@ -46,8 +44,12 @@
|
|||
return (bytes / Math.pow(1024, e)).toFixed(2) + " " + s[e];
|
||||
}
|
||||
</script>
|
||||
<script src="/admin/js/map_functions.js"></script>
|
||||
<script src="/common/assets/map.js"></script>
|
||||
|
||||
<script src="osm_functions.js"></script>
|
||||
<script>
|
||||
window.$ = window.$ = jQuery;
|
||||
$.when(readOsmCatalog()).done(function() {
|
||||
renderRegionList(false);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in a new issue