Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eric Duminil
RegionChooser
Commits
c2f63fe8
Commit
c2f63fe8
authored
Mar 09, 2018
by
Eric Duminil
Browse files
RegionChooser: Add a refresh button.
parent
100ece3b
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/eu/simstadt/regionchooser/RegionChooserBrowser.java
View file @
c2f63fe8
...
...
@@ -55,6 +55,10 @@ public JavaScriptFXBridge() {
}
}
public
void
refreshHulls
()
{
System
.
out
.
println
(
"SHOULD REFRESH : "
+
repo
);
}
public
void
downloadRegion
(
String
wktPolygon
,
String
productName
,
JSObject
novaFactoryLayer
)
throws
InterruptedException
{
//TODO: Ask nf Server about available regions
...
...
@@ -175,7 +179,6 @@ public void importNovaFactoryBoundingBoxes() throws IOException {
epsgId
);
}
nf_csv
.
close
();
}
}
...
...
src/eu/simstadt/regionchooser/website/index.html
View file @
c2f63fe8
<html>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html;charset=ISO-8859-1"
>
<meta
name=
"viewport"
content=
"initial-scale=1.0, user-scalable=no"
/>
<title>
Simstadt Region Chooser
</title>
<meta
name=
"keywords"
content=
"polygon,creator,google map,v3,draw,paint"
>
<meta
name=
"description"
content=
"Google Map V3 Polygon Creator for Simstadt"
>
<html>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html;charset=ISO-8859-1"
>
<meta
name=
"viewport"
content=
"initial-scale=1.0, user-scalable=no"
/>
<title>
Simstadt Region Chooser
</title>
<meta
name=
"keywords"
content=
"polygon,creator,google map,v3,draw,paint"
>
<meta
name=
"description"
content=
"Google Map V3 Polygon Creator for Simstadt"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"style/style.css"
>
<!-- Firebug for js console: -->
<!--
<script type='text/javascript' src='script/firebug-lite-compressed.js'></script>
-->
<script
type=
"text/javascript"
src=
"script/proj4.js"
></script>
<script
type=
"text/javascript"
src=
"script/jquery-1.4.2.min.js"
></script>
<!-- <link rel="stylesheet" href="http://openlayers.org/en/v3.4.0/css/ol.css" type="text/css">
<script src="http://openlayers.org/en/v3.4.0/build/ol.js" type="text/javascript"></script>
-->
<link
rel=
"stylesheet"
href=
"style/ol.css"
type=
"text/css"
>
<!-- <script src="ol-debug.js" type="text/javascript"></script> -->
<script
src=
"script/ol.js"
type=
"text/javascript"
></script>
<script
src=
"script/turf.js"
type=
"text/javascript"
></script>
</head>
<body>
<div
id=
"header"
>
<ul>
<li
class=
"title"
>
Simstadt Region Chooser
</li>
</ul>
</div>
<div
id=
"map"
class=
"map"
tabindex=
"0"
></div>
<div
id=
"side"
>
<div
id=
"dataPanel"
>
</div>
</div>
<input
id=
"reset"
value=
"Reset"
type=
"button"
class=
"navi"
disabled
/>
<script
src=
"script/simstadt_openlayers.js"
type=
"text/javascript"
></script>
</body>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"style/style.css"
>
<!-- Firebug for js console: -->
<!--
-->
<script
type=
'text/javascript'
src=
'script/firebug-lite-compressed.js'
></script>
<script
type=
"text/javascript"
src=
"script/proj4.js"
></script>
<script
type=
"text/javascript"
src=
"script/jquery-1.4.2.min.js"
></script>
<!-- <link rel="stylesheet" href="http://openlayers.org/en/v3.4.0/css/ol.css" type="text/css">
<script src="http://openlayers.org/en/v3.4.0/build/ol.js" type="text/javascript"></script>
-->
<link
rel=
"stylesheet"
href=
"style/ol.css"
type=
"text/css"
>
<!-- <script src="ol-debug.js" type="text/javascript"></script> -->
<script
src=
"script/ol.js"
type=
"text/javascript"
></script>
<script
src=
"script/turf.js"
type=
"text/javascript"
></script>
</head>
<body>
<input
id=
"refresh_hulls"
value=
"Refresh"
type=
"button"
class=
"navi"
/>
<div
id=
"header"
>
<ul>
<li
class=
"title"
>
Simstadt Region Chooser
</li>
</ul>
</div>
<div
id=
"map"
class=
"map"
tabindex=
"0"
></div>
<div
id=
"side"
>
<div
id=
"dataPanel"
></div>
</div>
<input
id=
"reset"
value=
"Reset"
type=
"button"
class=
"navi"
disabled
/>
<script
src=
"script/simstadt_openlayers.js"
type=
"text/javascript"
></script>
</body>
</html>
src/eu/simstadt/regionchooser/website/script/simstadt_openlayers.js
View file @
c2f63fe8
...
...
@@ -291,6 +291,10 @@ var regionChooser = (function(){
focusOnMap
();
}
});
$
(
'
#refresh_hulls
'
).
click
(
function
()
{
fxapp
.
refreshHulls
();
});
novafactory_layer
.
downloadFinished
=
function
()
{
// FIXME: Weird <br>s are inserted between lines
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment