Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("#sliderLive").bind("valuesChanging", function (e, data) {
- var time = data.values.max;
- $scope.currentTime = time;
- angular.forEach($scope.markers, function (marker, index) {
- if (marker.markerType === 'flash') {
- console.log("SCOPE MARKERS ", marker);
- delete $scope.markers[index];
- }
- });
- angular.forEach($scope.day, function (flash) {
- var timeSinceFlash = $scope.currentTime - flash.createdDate;
- var minutesSinceCreated = Math.floor(timeSinceFlash / (1000 * 60));
- if (minutesSinceCreated !== 'undefined' && minutesSinceCreated <= 180 && minutesSinceCreated >= 0) {
- $scope.markers['p' + pathIndex++] = flash;
- }
- });
- updateFlashMarkerColors($scope.currentTime);
- updateFlashInformation();
- var timeCurr = time;
- var timePrev = time;
- $scope.currTime = dateToString(timeCurr);
- timePrev.setHours(timePrev.getHours() - 3);
- $scope.prevTime = dateToString(timePrev);
- //TODO Causes removeLayer is not a function
- leafletData.getMap().then(function (map) {
- console.log("updating1");
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement