Skip to content

Commit b96f3f3

Browse files
committed
Update to newer plovr + related code cleaning
1 parent 1f059a0 commit b96f3f3

10 files changed

Lines changed: 33 additions & 309 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/deploy/api.js
2+
/plovr-*.*

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[submodule "cesium"]
22
path = cesium
33
url = https://github.com/klokantech/cesium.git
4+
[submodule "src-app/library"]
5+
path = src-app/library
6+
url = https://github.com/klokantech/javascript.git

Makefile

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
1-
PLOVR=../plovr-81ed862.jar
1+
PLOVR_VERSION=2.0.0
2+
PLOVR=plovr-$(PLOVR_VERSION).jar
23

3-
.PHONY: cesium
4+
.PHONY: plovr cesium lint webserver
45

6+
all: build
7+
plovr: $(PLOVR)
8+
$(PLOVR):
9+
wget -q --no-check-certificate https://registry.npmjs.org/plovr/-/plovr-$(PLOVR_VERSION).tgz
10+
tar -xOzf plovr-$(PLOVR_VERSION).tgz package/bin/plovr.jar > $(PLOVR)
11+
rm plovr-$(PLOVR_VERSION).tgz
512
serve:
6-
java -jar $(PLOVR) serve -p 9810 api.json api-debug.json app.json app-debug.json
13+
java -jar $(PLOVR) serve -p 9810 *.json
714
build:
815
java -jar $(PLOVR) build api.json > deploy/api_nocesium.js
916
java -jar $(PLOVR) build app.json > deploy/index_nocesium.js
@@ -12,7 +19,12 @@ lint:
1219
fixjsstyle --strict -r ./src-app
1320
gjslint --strict -r ./src
1421
gjslint --strict -r ./src-app
15-
soyweb:
22+
webserver:
1623
java -jar $(PLOVR) soyweb -p 9820 --dir .
1724
cesium:
18-
cd cesium && "./Tools/apache-ant-1.8.2/bin/ant" minify
25+
git submodule init
26+
git submodule update
27+
cd cesium && "./Tools/apache-ant-1.8.2/bin/ant" minify
28+
library:
29+
git submodule init
30+
git submodule update

app.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"id": "app",
33

4-
"inputs": ['src-app/main.js'],
5-
"paths": ['src', 'src-app'],
4+
"inputs": ["src-app/main.js"],
5+
"paths": ["src", "src-app", "src-app/library/src"],
66

77
"externs": [
88
"Cesium.externs.js"
@@ -16,10 +16,10 @@
1616

1717
"mode": "ADVANCED",
1818
"level": "VERBOSE",
19-
19+
2020
// "pretty-print": true,
2121
// "debug": true,
22-
22+
2323
"checks": {
2424
// Unfortunately, the Closure Library violates these in many places.
2525
// "accessControls": "ERROR",

src-app/library

Submodule library added at 8b1d6a9

src-app/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ goog.require('goog.events');
1313
goog.require('goog.events.EventType');
1414
goog.require('goog.userAgent');
1515

16-
goog.require('klokantech.Nominatim');
16+
goog.require('kt.Nominatim');
1717
goog.require('weapi.exports.App');
1818

1919

@@ -66,7 +66,7 @@ weapp.App = function() {
6666

6767
var geocoderElement = /** @type {!Element} */
6868
(goog.dom.getElement('geocoder'));
69-
var ac = new klokantech.Nominatim(geocoderElement,
69+
var ac = new kt.Nominatim(geocoderElement,
7070
'http://nominatim.klokantech.com/');
7171

7272
goog.events.listen(ac, goog.ui.ac.AutoComplete.EventType.UPDATE, function(e) {

src-app/nominatim.js

Lines changed: 0 additions & 120 deletions
This file was deleted.

src-app/nominatimmatcher.js

Lines changed: 0 additions & 175 deletions
This file was deleted.

src/api.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,7 @@ exportSymbol('WebGLEarth.Polygon.prototype.getCentroid',
697697

698698
/**
699699
* @param {!function(!weapi.exports.Polygon)} callback
700+
* @suppress {accessControls}
700701
*/
701702
weapi.exports.Polygon.prototype.onClick = function(callback) {
702703
goog.events.listen(this.app.canvas, goog.events.EventType.CLICK, function(e) {

0 commit comments

Comments
 (0)