Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gioppoluca committed Mar 10, 2014
1 parent c54e986 commit b995091
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion web/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ header {
}

#logo {
width: 330px;
width: 100%;
float: left;
height: 80px;
color: #888;
Expand Down
20 changes: 10 additions & 10 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>

<head>
<title>RoadAccidents Opendai - Openlayers</title>
<title>RoadAccidents Opendai</title>
<meta name="description" content="website description" />
<meta name="keywords" content="website keywords, website keywords" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
Expand Down Expand Up @@ -35,8 +35,8 @@
<div id="logo">
<div id="logo_text">
<!-- class="logo_colour", allows you to change the colour of the text -->
<h1><a href="index.html"><b style="color: #0DBBD5">RoadAccidents</b><span class="logo_colour">_Opendai</span></a></h1>
<h2 style="color: #F67F00"><b>RoadAccidents Opendai - Openlayers</b></h2>
<h1><a href="index.html"><b style="color: #0DBBD5">RoadAccidents Opendai</b></a></h1>
<h2 style="color: #F67F00"><b>Incidenti stradali e sensori di traffico - selezionare un incidente (rosso) per verificare lo stato del traffico nei sensori corrispondenti</b></h2>
</div>
</div>
<nav>
Expand All @@ -58,7 +58,7 @@ <h4>26/03/2012 - Pagina di prova</h4>
-->
<h3>Strumenti</h3>
<h4>Data e ora rif. Sensori Traffico</h4>
<p>Working progress</p>

<div>
<span id="time_pick" ></span>
<br/>
Expand All @@ -78,7 +78,7 @@ <h4>Data e ora rif. Sensori Traffico</h4>
</div>
<div id="slider_anno">
<div id="label_anno">
<label>Showing year </label><span id="range_anni"></span>
<label>Anni </label><span id="range_anni"></span>
<input type="hidden" id="from_year" value="2009" />
<input type="hidden" id="to_year" value="2010" />
</div>
Expand All @@ -88,7 +88,7 @@ <h4>Data e ora rif. Sensori Traffico</h4>
</div>
</div>
<footer>
<p>Copyright &copy; scenic_photo, custumized by <b style="color: #0DBBD5">RoadAccidents</b><span class="logo_colour">_Opendai</span> | <a href="http://www.css3templates.co.uk">design starting from css3templates.co.uk</a></p>
<p>Copyright &copy; CSI-Piemonte</p>
</footer>
</div>
<p>&nbsp;</p>
Expand All @@ -108,21 +108,21 @@ <h4>Data e ora rif. Sensori Traffico</h4>
$( "#slider-range" ).slider({
range: true,
min: 2009,
max: 2013,
max: 2014,
step: 1,
values: [ 2009, 2010 ],
slide: function( event, ui ) {
$( "#range_anni" ).html( "from " + ui.values[ 0 ] + " - to " + ui.values[ 1 ] );
$( "#range_anni" ).html( "da " + ui.values[ 0 ] + " - a " + ui.values[ 1 ] );
},
change: function( event, ui ) {
$( "#from_year" ).val(ui.values[ 0 ]);
$( "#to_year" ).val(ui.values[ 1 ]);
// refreshWMSLayer(ui.values[ 0 ], ui.values[ 1 ]);
refreshWMSLayer(ui.values[ 0 ], ui.values[ 1 ]);
// Aggiorno solo i campi Hidden, aggiornamento con click su img
}
});

$( "#range_anni" ).html( "from " + $( "#slider-range" ).slider( "values", 0 ) + " - to " + $( "#slider-range" ).slider( "values", 1 ) );
$( "#range_anni" ).html( "da " + $( "#slider-range" ).slider( "values", 0 ) + " - a " + $( "#slider-range" ).slider( "values", 1 ) );

$('#time_pick').datetimepicker({
// altField: "#time_pick_alt",
Expand Down
8 changes: 4 additions & 4 deletions web/js/opendai_map.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Posizione iniziale della mappa
var geo_server_ip = "194.116.110.158";

var geo_server_ip = "geo.italy.opendai.eu";
var geo_server_port = "80";
var lat=45.174293;
var lon=7.903747;
// zoom iniziale
Expand Down Expand Up @@ -62,7 +62,7 @@ function init() {

inc_wms = new OpenLayers.Layer.WMS(
" Road Accident",
"http://" + geo_server_ip + ":80/geoserver/stg/wms?service=WMS&version=1.1.0",
"http://" + geo_server_ip + ":" + geo_server_port + "/geoserver/stg/wms?service=WMS&version=1.1.0",
{
layers: "stg:SISS_VSDO_PT_LOCINC",
transparent: "true",
Expand All @@ -78,7 +78,7 @@ function init() {
// Layer spire
spire_wms = new OpenLayers.Layer.WMS(
" Traffic Sensor",
"http://" + geo_server_ip + ":80/geoserver/stg/wms?service=WMS&version=1.1.0",
"http://" + geo_server_ip + ":" + geo_server_port + "/geoserver/stg/wms?service=WMS&version=1.1.0",
{
layers: "stg:traffic_sensor",
transparent: "true",
Expand Down

0 comments on commit b995091

Please sign in to comment.