Skip to content

Commit

Permalink
licence added
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmtech committed Mar 8, 2017
1 parent d5029e0 commit 5106536
Show file tree
Hide file tree
Showing 15 changed files with 31 additions and 36 deletions.
10 changes: 1 addition & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1 @@
# Melown Core API

## Documentation Links
* [Melown Core API](https://gitlab.citationtech.net/vts/melown-core-api/wikis/home)
* [Melown Core API Source Code Structure](https://gitlab.citationtech.net/vts/melown-core-api/wikis/source-code-documentation)

## Sortcuts
* [Melown Core API Shortcuts](https://gitlab.citationtech.net/vts/melown-core-api/wikis/shortcuts)

# Melown-js
4 changes: 2 additions & 2 deletions demos/browser/basic/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<head>
<title>Vadstena Map Viewer</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="../../build/melown-v1.css" />
<script type="text/javascript" src="../../build/melown-v1.js"></script>
<link rel="stylesheet" type="text/css" href="../../../build/melown-browser.css" />
<script type="text/javascript" src="../../../build/melown-browser.js"></script>
<script type="text/javascript" src="./demo.js"></script>
</head>

Expand Down
4 changes: 2 additions & 2 deletions demos/browser/flights/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<head>
<title>Vadstena Map Viewer</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="../../build/melown-v1.css" />
<script type="text/javascript" src="../../build/melown-v1.js"></script>
<link rel="stylesheet" type="text/css" href="../../../build/melown-browser.css" />
<script type="text/javascript" src="../../../build/melown-browser.js"></script>
<script type="text/javascript" src="./demo.js"></script>


Expand Down
4 changes: 2 additions & 2 deletions demos/browser/hit-surface/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<head>
<title>Vadstena Map Viewer</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="../../build/melown-v1.css" />
<script type="text/javascript" src="../../build/melown-v1.js"></script>
<link rel="stylesheet" type="text/css" href="../../../build/melown-browser.css" />
<script type="text/javascript" src="../../../build/melown-browser.js"></script>
<script type="text/javascript" src="./demo.js"></script>
</head>

Expand Down
4 changes: 2 additions & 2 deletions demos/browser/lines-and-images/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<head>
<title>Vadstena Map Viewer</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="../../build/melown-v1.css" />
<script type="text/javascript" src="../../build/melown-v1.js"></script>
<link rel="stylesheet" type="text/css" href="../../../build/melown-browser.css" />
<script type="text/javascript" src="../../../build/melown-browser.js"></script>
<script type="text/javascript" src="./demo.js"></script>
</head>

Expand Down
4 changes: 2 additions & 2 deletions demos/browser/meshes-hit-test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<head>
<title>Vadstena Map Viewer</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="../../build/melown-v1.css" />
<script type="text/javascript" src="../../build/melown-v1.js"></script>
<link rel="stylesheet" type="text/css" href="../../../build/melown-browser.css" />
<script type="text/javascript" src="../../../build/melown-browser.js"></script>
<script type="text/javascript" src="./demo.js"></script>
</head>

Expand Down
4 changes: 2 additions & 2 deletions demos/browser/meshes/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<head>
<title>Vadstena Map Viewer</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="../../build/melown-v1.css" />
<script type="text/javascript" src="../../build/melown-v1.js"></script>
<link rel="stylesheet" type="text/css" href="../../../build/melown-browser.css" />
<script type="text/javascript" src="../../../build/melown-browser.js"></script>
<script type="text/javascript" src="./demo.js"></script>
</head>

Expand Down
4 changes: 2 additions & 2 deletions demos/browser/view-switch/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<head>
<title>Vadstena Map Viewer</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="../../build/melown-v1.css" />
<script type="text/javascript" src="../../build/melown-v1.js"></script>
<link rel="stylesheet" type="text/css" href="../../../build/melown-browser.css" />
<script type="text/javascript" src="../../../build/melown-browser.js"></script>
<script type="text/javascript" src="./demo.js"></script>


Expand Down
3 changes: 1 addition & 2 deletions demos/core/basic/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
<head>
<title>Vadstena Map Viewer</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">

<script type="text/javascript" src="../../lib/melown-core-v1-min.js"></script>
<script type="text/javascript" src="../../../build/melown-core.js"></script>
<script type="text/javascript" src="./demo.js"></script>
</head>

Expand Down
3 changes: 1 addition & 2 deletions demos/core/hit-surface/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
<head>
<title>Vadstena Map Viewer</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">

<script type="text/javascript" src="../../lib/melown-core-v1-min.js"></script>
<script type="text/javascript" src="../../../build/melown-core.js"></script>
<script type="text/javascript" src="./demo.js"></script>

<style>
Expand Down
3 changes: 1 addition & 2 deletions demos/core/lines-and-images/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
<head>
<title>Vadstena Map Viewer</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">

<script type="text/javascript" src="../../lib/melown-core-v1-min.js"></script>
<script type="text/javascript" src="../../../build/melown-core.js"></script>
<script type="text/javascript" src="./demo.js"></script>

<style>
Expand Down
3 changes: 1 addition & 2 deletions demos/core/meshes-hit-test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
<head>
<title>Vadstena Map Viewer</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">

<script type="text/javascript" src="../../lib/melown-core-v1-min.js"></script>
<script type="text/javascript" src="../../../build/melown-core.js"></script>
<script type="text/javascript" src="./demo.js"></script>

<style>
Expand Down
3 changes: 1 addition & 2 deletions demos/core/meshes/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
<head>
<title>Vadstena Map Viewer</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">

<script type="text/javascript" src="../../lib/melown-core-v1-min.js"></script>
<script type="text/javascript" src="../../../build/melown-core.js"></script>
<script type="text/javascript" src="./demo.js"></script>

<style>
Expand Down
13 changes: 10 additions & 3 deletions make.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
CLOSURECOMPILER=../build/tools/closure-compiler/compiler.jar


# create lincense header
echo "/* Melown-js (c) 2011 - 2017 MELOWN TECHNOLOGIES SE */ " > ./build/license-tmp.js

# merge geodata workers
echo "Melown.MapGeodataProcessorWorker = function() { " | cat - src/core/map/geodata-processor/worker-globals.js src/core/map/geodata-processor/worker-style.js src/core/map/geodata-processor/worker-linestring.js src/core/map/geodata-processor/worker-pointarray.js src/core/map/geodata-processor/worker-polygon.js src/core/map/geodata-processor/worker-text.js src/core/map/geodata-processor/worker-main.js > ./build/geodata-worker-tmp.js
echo "};">> ./build/geodata-worker-tmp.js
Expand Down Expand Up @@ -83,14 +86,16 @@ cat src/core/utils/matrix.js \
src/core/update.js > ./build/melown-core-v1-merge-tmp.js

# merge final core lib
cat src/core/utils/libs/proj4.js \
cat ./build/license-tmp.js \
src/core/utils/libs/proj4.js \
src/core/utils/libs/geographics-nomini.js \
src/core/_nominify.js \
./build/melown-core-v1-merge-tmp.js > ./build/melown-core-v1-merge.js

# minify core lib
# java -jar ${CLOSURECOMPILER} --compilation_level ADVANCED_OPTIMIZATIONS --js _minify.js ../build/melown-core-v1-merge-tmp.js --js_output_file ../build/melown-core-v1-tmp.js
# cat src/core/utils/libs/proj4.js \
# cat ./build/license-tmp.js \
# src/core/utils/libs/proj4.js \
# src/core/utils/libs/geographics-nomini.js \
# ./build/melown-core-v1-tmp.js > ./build/melown-core-v1-inspector-mini.js
# rm ./build/melown-core-v1-tmp.js
Expand Down Expand Up @@ -137,7 +142,8 @@ cat ./build/melown-core-v1-merge.js \

#minify lib
# java -jar compiler/compiler.jar --compilation_level ADVANCED_OPTIMIZATIONS --js melown-core-v1-merge.js ../build/melown-v1-merge.js --js_output_file ../build/melown-v1-tmp.js
# cat src/core/utils/libs/proj4.js \
# cat ./build/license-tmp.js \
# src/core/utils/libs/proj4.js \
# src/core/_nominify.js \
# ./build/melown-v1-merge-tmp2.js > ./build/melown-v1-merge.js
# rm ./build/melown-v1-merge-tmp2.js
Expand All @@ -155,6 +161,7 @@ mv ./build/melown-core-v1-merge.js ./build/melown-core.js
# remove remaining tmps
rm ./build/geodata-worker-tmp.js
rm ./build/melown-core-v1-merge-tmp.js
rm ./build/license-tmp.js

echo Make complete.

Expand Down
1 change: 1 addition & 0 deletions src/core/map/subtexture.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// exist in newtextures brunch

0 comments on commit 5106536

Please sign in to comment.