Skip to content

Commit

Permalink
Preparing for HHNK
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvantilburg committed Mar 12, 2014
1 parent dec878d commit a739e81
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 14 deletions.
8 changes: 7 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
<link rel="stylesheet" href="lib/diff/font-awesome-4.0.3/css/font-awesome.min.css">
<link rel="stylesheet" href="css/app.css">
<script src="./lib/cow/lib/dbjs/db.js"></script>
<!-- signalR ready-->
<script type="text/javascript" src="./lib/cow/lib/jquery-1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="./lib/cow/lib/jquery.signalR/jquery.signalR-2.0.2.js"></script>
<script type="text/javascript" src="https://srvcis/cow/signalr/hubs"></script> <!-- CHANGE THIS TO CORRECT SIGNALR SERVER URL -->

<script type="text/javascript" src="./lib/cow/lib/underscore/underscore-min.js" ></script>
<script type="text/javascript" src="./lib/cow/src/cow2.utils.js" ></script>
<script type="text/javascript" src="./lib/cow/src/cow2.record.js" ></script>
Expand All @@ -18,7 +23,8 @@
<script type="text/javascript" src="./lib/cow/src/cow2.group.js" ></script>
<script type="text/javascript" src="./lib/cow/src/cow2.item.js" ></script>
<script type="text/javascript" src="./lib/cow/src/cow2.project.js" ></script>
<script type="text/javascript" src="./lib/cow/src/cow2.websocket.js" ></script>
<!--<script type="text/javascript" src="./lib/cow/src/cow2.websocket.js" ></script>-->
<script type="text/javascript" src="./lib/cow/src/cow2.signalR.js" ></script>
<script type="text/javascript" src="./lib/cow/src/cow2.core.js" ></script>
<script type="text/javascript" src="./lib/cow/lib/polyfill-promise/promise-0.1.1.min.js"></script>

Expand Down
2 changes: 1 addition & 1 deletion lib/cow
Submodule cow updated 1 files
+3 −0 src/cow2.record.js
5 changes: 5 additions & 0 deletions src/controllers/leafletCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ icm.controller('LeafletController', [ '$scope','$http','$timeout','Core', 'Utils
$scope.time = new Date($scope.mytime).getTime();
populateFeatures();
};
$scope.setNow = function() {
var d = new Date();
$scope.mytime = d;
$scope.timechanged();
};
$scope.toggleChronos = function(){
populateFeatures();
};
Expand Down
3 changes: 2 additions & 1 deletion src/factories.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ icm.factory('Beelden', ['$rootScope', function( $rootScope ) {
icm.factory('Core', ['$rootScope', function($rootScope) {

var cow = new Cow.core({
wsUrl: 'wss://websocket.geodan.nl:443/icms'
//wsUrl: 'wss://websocket.geodan.nl:443/icms'
wsUrl: 'https://srvcis/cow/signalr'
});
cow.userStore().loaded.then(function(){
if (!cow.users('1')){
Expand Down
4 changes: 2 additions & 2 deletions src/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ icm.factory('LeafletService',['$rootScope','Core',function($rootScope, Core) {
instance.layers = {};
instance.center = function(center){
if (!center){
console.log('Getting center: ', instance._center);
//console.log('Getting center: ', instance._center);
}
else{
console.log('setting center: ', center);
//console.log('setting center: ', center);
}
return instance._center = center || instance._center;
};
Expand Down
13 changes: 4 additions & 9 deletions src/state.js
Original file line number Diff line number Diff line change
@@ -1,29 +1,24 @@
var icm = angular.module('icm', ["ui.router",'ui.bootstrap',"leaflet-directive",'ngSanitize', 'textAngular'])
.run(
[ '$rootScope', '$state', '$stateParams',
function ($rootScope, $state, $stateParams) {
[ '$rootScope', '$state', '$stateParams','Utils',
function ($rootScope, $state, $stateParams, Utils) {

// It's very handy to add references to $state and $stateParams to the $rootScope
// so that you can access them from any scope within your applications.For example,
// <li ui-sref-active="active }"> will set the <li> // to active whenever
// 'contacts.list' or one of its decendents is active.
$rootScope.$state = $state;
$rootScope.$stateParams = $stateParams;

}])
.config(
[ '$stateProvider', '$urlRouterProvider',
function ($stateProvider, $urlRouterProvider) {
['$stateProvider', '$urlRouterProvider',function ($stateProvider, $urlRouterProvider) {


$urlRouterProvider


//bij foute url stuur naar het begin
//bij foute url stuur naar het begin
.otherwise("/");

$stateProvider

// Hier moet IAAA stuff komen, maar voorlopig moet je een username invullen voor
// COW
.state("login", {
Expand Down
1 change: 1 addition & 0 deletions templates/kaart.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ <h3>Lagen</h3>
<span ng-model="mytime" ng-change="timechanged()" ng-show="chronos" style="display:inline-block;">
<timepicker hour-step="hstep" minute-step="mstep" show-meridian="ismeridian"></timepicker>
</span>
<button class="btn btn-default" ng-click="setNow()" ng-show="chronos">Huidig</button>
<leaflet center="initcenter" defaults="defaults" height="800px" width="100%" markers="markers" paths='paths' layers="layers" events="events"></leaflet>
</div>
</div>
Expand Down

0 comments on commit a739e81

Please sign in to comment.