blob: dfd0a93dc62965509988d0279a64175c0db0ef2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Building
First pull in the submodules:
git submodule update --init
cd libraries/leaflet-soton
git submodule update --init
Then, either run, or build jquery and leaflet from source:
./download-libraries.sh
After this, you will need to fetch or build the data.json file. Either running:
./create-data.js # if you have a local OSM database
OR
wget http://maps.southampton.ac.uk/data.json -O libraries/leaflet-soton/data.json
Then run:
make
Or, to build for release (with smaller js and css files):
make release
# Building the libraries
Most of the libraries do not require building, but jquery and leaflet do.
## jquery
npm run build
## leaflet
npm install -g jake
npm install
This requires a local OSM database, and to setup config.json (use the template
config.json.default).
./create-data.js
|