mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
7.2 maps [OSM] (#2486)
* move scripts and assets * webpack does not bundle externap -- not node -- modules * change main.js to *-bundle for viewer, test-page, and installer * disable the long download of osm for all versions of local_vars * start nginx for OSM always * let nodejs provide js packages * move scripts and assets * webpack does not bundle externap -- not node -- modules * change main.js to *-bundle for viewer, test-page, and installer * disable the long download of osm for all versions of local_vars * start nginx for OSM always * let nodejs provide js packages * change soft coded pointers from test branch to master
This commit is contained in:
parent
3063d602ec
commit
db56e184d1
6 changed files with 22 additions and 17 deletions
|
@ -6,10 +6,14 @@
|
||||||
|
|
||||||
# All above are set in: github.com/iiab/iiab/blob/master/vars/default_vars.yml
|
# All above are set in: github.com/iiab/iiab/blob/master/vars/default_vars.yml
|
||||||
# If nec, change them by editing /etc/iiab/local_vars.yml prior to installing!
|
# If nec, change them by editing /etc/iiab/local_vars.yml prior to installing!
|
||||||
#osm_map_url: https://github.com/iiab/maps/raw/master
|
|
||||||
# for testing, use the new unpublished version of regions.json
|
# The following soft coded variables allow testing, before pulling PR's into master
|
||||||
osm_repo_url: https://raw.githubusercontent.com/iiab/maps
|
osm_repo_url: https://raw.githubusercontent.com/iiab/maps
|
||||||
archive_org_url: https://archive.org/download
|
#osm_repo_url: https://raw.githubusercontent.com/georgejhunt/maps
|
||||||
satellite_version: satellite_z0-z9_v3.mbtiles
|
|
||||||
maps_branch: 'master'
|
maps_branch: 'master'
|
||||||
|
#maps_branch: '7.2-maps'
|
||||||
|
|
||||||
|
# soft code sources
|
||||||
|
archive_org_url: https://archive.org/download
|
||||||
map_catalog_url: http://download.iiab.io/content/OSM/vector-tiles
|
map_catalog_url: http://download.iiab.io/content/OSM/vector-tiles
|
||||||
|
satellite_version: satellite_z0-z9_v3.mbtiles
|
||||||
|
|
|
@ -49,13 +49,13 @@
|
||||||
dest: "{{ vector_map_path }}/maplist/assets/regions.json"
|
dest: "{{ vector_map_path }}/maplist/assets/regions.json"
|
||||||
state: link
|
state: link
|
||||||
|
|
||||||
- name: Download the JavaScript bundle with OpenLayers (main.js) for test page http://box/maps/maplist
|
- name: Download the JavaScript bundle with OpenLayers (test-page-bundle.js) for test page http://box/maps/maplist
|
||||||
# At this point, fetches from github.com/georgejhunt/maps from test branch
|
# At this point, fetches from github.com/georgejhunt/maps from test branch
|
||||||
get_url:
|
get_url:
|
||||||
url: "{{ item }}"
|
url: "{{ item }}"
|
||||||
dest: '{{ vector_map_path }}/test-page/'
|
dest: '{{ vector_map_path }}/test-page/'
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ osm_repo_url }}/{{ maps_branch }}/osm-source/pages/test-page/build/main.js"
|
- "{{ osm_repo_url }}/{{ maps_branch }}/osm-source/pages/test-page/build/test-page-bundle.js"
|
||||||
- "{{ osm_repo_url }}/{{ maps_branch }}/osm-source/pages/test-page/build/index.html"
|
- "{{ osm_repo_url }}/{{ maps_branch }}/osm-source/pages/test-page/build/index.html"
|
||||||
|
|
||||||
- name: Fetch the javascript bundle with openlayers for Viewer page
|
- name: Fetch the javascript bundle with openlayers for Viewer page
|
||||||
|
@ -65,8 +65,8 @@
|
||||||
dest: '{{ vector_map_path }}/viewer/'
|
dest: '{{ vector_map_path }}/viewer/'
|
||||||
with_items:
|
with_items:
|
||||||
- index.html
|
- index.html
|
||||||
- main.js
|
- viewer-bundle.js
|
||||||
- main.js.map
|
- viewer-bundle.js.map
|
||||||
|
|
||||||
- name: Get the helper files for viewer
|
- name: Get the helper files for viewer
|
||||||
get_url:
|
get_url:
|
||||||
|
@ -74,7 +74,6 @@
|
||||||
dest: '{{ vector_map_path }}/viewer/'
|
dest: '{{ vector_map_path }}/viewer/'
|
||||||
with_items:
|
with_items:
|
||||||
- mbtileinfo.php
|
- mbtileinfo.php
|
||||||
- ol-contextmenu.css
|
|
||||||
- popup.css
|
- popup.css
|
||||||
- searchapi.php
|
- searchapi.php
|
||||||
- tileserver.php
|
- tileserver.php
|
||||||
|
@ -96,7 +95,7 @@
|
||||||
dest: '{{ vector_map_path }}/installer/'
|
dest: '{{ vector_map_path }}/installer/'
|
||||||
with_items:
|
with_items:
|
||||||
- index.html
|
- index.html
|
||||||
- main.js
|
- installer-bundle.js
|
||||||
|
|
||||||
- name: Fetch the action routines for installer
|
- name: Fetch the action routines for installer
|
||||||
get_url:
|
get_url:
|
||||||
|
@ -118,7 +117,8 @@
|
||||||
- center.png
|
- center.png
|
||||||
- countries.json
|
- countries.json
|
||||||
- fonts.css
|
- fonts.css
|
||||||
- ol5-layerswitcher.css
|
- ol-layerswitcher.css
|
||||||
|
- ol-contextmenu.css
|
||||||
- pin_drop.png
|
- pin_drop.png
|
||||||
- sprite@2x.json
|
- sprite@2x.json
|
||||||
- sprite@2x.png
|
- sprite@2x.png
|
||||||
|
@ -170,7 +170,7 @@
|
||||||
|
|
||||||
- name: Copy a scripts to download tiles
|
- name: Copy a scripts to download tiles
|
||||||
get_url:
|
get_url:
|
||||||
url: "{{ osm_repo_url }}/{{ maps_branch }}/osm-source/pages/viewer/{{ item }}"
|
url: "{{ osm_repo_url }}/{{ maps_branch }}/osm-source/pages/viewer/scripts/{{ item }}"
|
||||||
dest: /usr/bin/
|
dest: /usr/bin/
|
||||||
mode: 0755
|
mode: 0755
|
||||||
with_items:
|
with_items:
|
||||||
|
|
|
@ -2,13 +2,14 @@
|
||||||
template:
|
template:
|
||||||
src: osm-vector-maps-nginx.conf.j2
|
src: osm-vector-maps-nginx.conf.j2
|
||||||
dest: "{{ nginx_conf_dir }}/osm-vector-maps-nginx.conf" # /etc/nginx/conf.d
|
dest: "{{ nginx_conf_dir }}/osm-vector-maps-nginx.conf" # /etc/nginx/conf.d
|
||||||
when: osm_vector_maps_enabled | bool
|
when: osm_vector_maps_install | bool
|
||||||
|
# Note that the above change from enabled->install is required by the OSM command line installer
|
||||||
|
|
||||||
- name: Disable http://box/maps & http://box/osm-vector-maps via NGINX, by removing {{ nginx_conf_dir }}/osm-vector-maps-nginx.conf
|
- name: Disable http://box/maps & http://box/osm-vector-maps via NGINX, by removing {{ nginx_conf_dir }}/osm-vector-maps-nginx.conf
|
||||||
file:
|
file:
|
||||||
path: "{{ nginx_conf_dir }}/osm-vector-maps-nginx.conf" # /etc/nginx/conf.d
|
path: "{{ nginx_conf_dir }}/osm-vector-maps-nginx.conf" # /etc/nginx/conf.d
|
||||||
state: absent
|
state: absent
|
||||||
when: not osm_vector_maps_enabled
|
when: not osm_vector_maps_install
|
||||||
|
|
||||||
- name: Reload 'nginx' systemd service
|
- name: Reload 'nginx' systemd service
|
||||||
systemd:
|
systemd:
|
||||||
|
|
|
@ -297,7 +297,7 @@ moodle_enabled: True
|
||||||
# Regional OSM vector maps use far less disk space than bitmap/raster versions.
|
# Regional OSM vector maps use far less disk space than bitmap/raster versions.
|
||||||
# Instructions: https://github.com/iiab/iiab/wiki/IIAB-Maps
|
# Instructions: https://github.com/iiab/iiab/wiki/IIAB-Maps
|
||||||
osm_vector_maps_install: True
|
osm_vector_maps_install: True
|
||||||
osm_vector_maps_enabled: True
|
osm_vector_maps_enabled: False
|
||||||
|
|
||||||
# Might stall MongoDB on Power Failure: github.com/xsce/xsce/issues/879
|
# Might stall MongoDB on Power Failure: github.com/xsce/xsce/issues/879
|
||||||
# Sugarizer 1.0.1+ strategies to solve? github.com/iiab/iiab/pull/957
|
# Sugarizer 1.0.1+ strategies to solve? github.com/iiab/iiab/pull/957
|
||||||
|
|
|
@ -297,7 +297,7 @@ moodle_enabled: False
|
||||||
# Regional OSM vector maps use far less disk space than bitmap/raster versions.
|
# Regional OSM vector maps use far less disk space than bitmap/raster versions.
|
||||||
# Instructions: https://github.com/iiab/iiab/wiki/IIAB-Maps
|
# Instructions: https://github.com/iiab/iiab/wiki/IIAB-Maps
|
||||||
osm_vector_maps_install: True
|
osm_vector_maps_install: True
|
||||||
osm_vector_maps_enabled: True
|
osm_vector_maps_enabled: False
|
||||||
|
|
||||||
# Might stall MongoDB on Power Failure: github.com/xsce/xsce/issues/879
|
# Might stall MongoDB on Power Failure: github.com/xsce/xsce/issues/879
|
||||||
# Sugarizer 1.0.1+ strategies to solve? github.com/iiab/iiab/pull/957
|
# Sugarizer 1.0.1+ strategies to solve? github.com/iiab/iiab/pull/957
|
||||||
|
|
|
@ -297,7 +297,7 @@ moodle_enabled: False
|
||||||
# Regional OSM vector maps use far less disk space than bitmap/raster versions.
|
# Regional OSM vector maps use far less disk space than bitmap/raster versions.
|
||||||
# Instructions: https://github.com/iiab/iiab/wiki/IIAB-Maps
|
# Instructions: https://github.com/iiab/iiab/wiki/IIAB-Maps
|
||||||
osm_vector_maps_install: True
|
osm_vector_maps_install: True
|
||||||
osm_vector_maps_enabled: True
|
osm_vector_maps_enabled: False
|
||||||
|
|
||||||
# Might stall MongoDB on Power Failure: github.com/xsce/xsce/issues/879
|
# Might stall MongoDB on Power Failure: github.com/xsce/xsce/issues/879
|
||||||
# Sugarizer 1.0.1+ strategies to solve? github.com/iiab/iiab/pull/957
|
# Sugarizer 1.0.1+ strategies to solve? github.com/iiab/iiab/pull/957
|
||||||
|
|
Loading…
Reference in a new issue