File tree 4 files changed +7
-3
lines changed
4 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
REGION = africa
2
- AREA = rwanda
2
+ AREA = rwanda
3
+ SITE_ROOT = http://localhost:9966
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ rake inet:install # install extra software
18
18
# specify OSM regison and area for tiles
19
19
export REGION=africa
20
20
export AREA=rwanda
21
+ export SITE_ROOT=http://localhost:9966 # you can skip if you don't need to change it.
21
22
rake inet:download # donwload source geospatial data for exercise
22
23
```
23
24
@@ -63,6 +64,7 @@ docker run -v $(pwd):/usr/src/app -it unvt/naru
63
64
cd /usr/src/app
64
65
export REGION=africa
65
66
export AREA=rwanda
67
+ export SITE_ROOT=http://localhost:9966
66
68
rake inet:download # download osm.obf
67
69
rake tiles # create mbtiles under src folder
68
70
rake style # create style.json
Original file line number Diff line number Diff line change 1
1
REGION = ENV [ 'REGION' ]
2
2
AREA = ENV [ 'AREA' ]
3
3
MBTILES = "src/tiles.mbtiles"
4
+ SITE_ROOT = ENV [ 'SITE_ROOT' ] || 'http://localhost:9966'
4
5
5
6
namespace :inet do
6
7
desc 'install extra software for naru'
39
40
desc 'build style.json from HOCON descriptions'
40
41
task :style do
41
42
require 'json'
42
- sh "parse-hocon hocon/style.conf > docs/style.json"
43
+ sh "site_root= #{ SITE_ROOT } parse-hocon hocon/style.conf > docs/style.json"
43
44
center = JSON . parse ( File . read ( 'docs/zxy/metadata.json' ) ) [ 'center' ] . split ( ',' )
44
45
. map { |v | v . to_f } . slice ( 0 , 2 )
45
46
style = JSON . parse ( File . read ( 'docs/style.json' ) )
Original file line number Diff line number Diff line change 1
1
# _root.conf
2
2
# project specific parameters
3
3
#site_root: "https://optgeo.github.io/kokoromi-rw"
4
- site_root: "http://localhost:9966"
4
+ # site_root: "http://localhost:9966"
5
5
# center: [lng, lat]
6
6
center: [
7
7
174.786987
You can’t perform that action at this time.
0 commit comments