Commit c2f63fe8 authored by Eric Duminil's avatar Eric Duminil
Browse files

RegionChooser: Add a refresh button.

parent 100ece3b
...@@ -55,6 +55,10 @@ public JavaScriptFXBridge() { ...@@ -55,6 +55,10 @@ public JavaScriptFXBridge() {
} }
} }
public void refreshHulls() {
System.out.println("SHOULD REFRESH : " + repo);
}
public void downloadRegion(String wktPolygon, String productName, JSObject novaFactoryLayer) public void downloadRegion(String wktPolygon, String productName, JSObject novaFactoryLayer)
throws InterruptedException { throws InterruptedException {
//TODO: Ask nf Server about available regions //TODO: Ask nf Server about available regions
...@@ -175,7 +179,6 @@ public void importNovaFactoryBoundingBoxes() throws IOException { ...@@ -175,7 +179,6 @@ public void importNovaFactoryBoundingBoxes() throws IOException {
epsgId); epsgId);
} }
nf_csv.close(); nf_csv.close();
} }
} }
......
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<title> Simstadt Region Chooser </title> <title>Simstadt Region Chooser</title>
<meta name="keywords" content="polygon,creator,google map,v3,draw,paint"> <meta name="keywords" content="polygon,creator,google map,v3,draw,paint">
<meta name="description" content="Google Map V3 Polygon Creator for Simstadt"> <meta name="description"
content="Google Map V3 Polygon Creator for Simstadt">
<link rel="stylesheet" type="text/css" href="style/style.css"> <link rel="stylesheet" type="text/css" href="style/style.css">
<!-- Firebug for js console: --> <!-- Firebug for js console: -->
<!-- <!--
<script type='text/javascript' src='script/firebug-lite-compressed.js'></script> -->
--> <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/proj4.js"></script>
<script type="text/javascript" src="script/jquery-1.4.2.min.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"> <!-- <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> <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"> <link rel="stylesheet" href="style/ol.css" type="text/css">
<!-- <script src="ol-debug.js" type="text/javascript"></script> --> <!-- <script src="ol-debug.js" type="text/javascript"></script> -->
<script src="script/ol.js" type="text/javascript"></script> <script src="script/ol.js" type="text/javascript"></script>
<script src="script/turf.js" type="text/javascript"></script> <script src="script/turf.js" type="text/javascript"></script>
</head>
</head> <body>
<body> <input id="refresh_hulls" value="Refresh" type="button" class="navi" />
<div id="header">
<div id="header"> <ul>
<ul> <li class="title">Simstadt Region Chooser</li>
<li class="title"> </ul>
Simstadt Region Chooser </div>
</li> <div id="map" class="map" tabindex="0"></div>
</ul> <div id="side">
</div> <div id="dataPanel"></div>
<div id="map" class="map" tabindex="0"></div> </div>
<div id="side"> <input id="reset" value="Reset" type="button" class="navi" disabled />
<div id="dataPanel"> <script src="script/simstadt_openlayers.js" type="text/javascript"></script>
</div> </body>
</div>
<input id="reset" value="Reset" type="button" class="navi" disabled/>
<script src="script/simstadt_openlayers.js" type="text/javascript"></script>
</body>
</html> </html>
...@@ -291,6 +291,10 @@ var regionChooser = (function(){ ...@@ -291,6 +291,10 @@ var regionChooser = (function(){
focusOnMap(); focusOnMap();
} }
}); });
$('#refresh_hulls').click(function() {
fxapp.refreshHulls();
});
novafactory_layer.downloadFinished = function() { novafactory_layer.downloadFinished = function() {
// FIXME: Weird <br>s are inserted between lines // FIXME: Weird <br>s are inserted between lines
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment