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() {
}
}
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();
}
}
......
<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>
......@@ -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
......
Markdown is supported
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