Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/jane/static/web_gis/src/baynetapp.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ module.factory('stations', function($http, $log, jane_server) {
"station_name": j.station_name,
"latitude": j.latitude,
"longitude": j.longitude,
"elevation": j.elevation_in_m,
"channels": [],
"min_startdate": n_sd,
"max_enddate": n_ed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ baynetApp.controller('stationInfoController', function ($scope, $log, stations)
$scope.station_object = j;
$scope.network_name = j.properties.network_name;
$scope.station_name = j.properties.station_name;
$scope.latitude = j.properties.latitude;
$scope.longitude = j.properties.longitude;
$scope.elevation = j.properties.elevation;
$scope.channels = j.properties.channels;
for (var i = 0; i < $scope.channels.length; i++) {
var chan = $scope.channels[i];
Expand All @@ -26,4 +29,4 @@ baynetApp.controller('stationInfoController', function ($scope, $log, stations)
}
break;
}
});
});
11 changes: 10 additions & 1 deletion src/jane/static/web_gis/templates/station_modal.tpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ <h4 class="modal-title">Details for {{title}}</h4>
<div class="row">
<em>{{station_name}}</em> im <em>{{network_name}}</em>
</div>
<div class="row">
<span class="label label-default">Latitude</span> {{latitude}}°
</div>
<div class="row">
<span class="label label-default">Longitude</span> {{longitude}}°
</div>
<div class="row">
<span class="label label-default">Elevation</span> {{elevation}}m
</div>
</div>

<div class="container-fluid">
Expand Down Expand Up @@ -63,4 +72,4 @@ <h4 class="modal-title">Details for {{title}}</h4>
</div>
</div>
</div>
</div>
</div>