Return-Path: X-Original-To: apmail-climate-commits-archive@minotaur.apache.org Delivered-To: apmail-climate-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EB455107E5 for ; Wed, 10 Jul 2013 23:10:06 +0000 (UTC) Received: (qmail 61335 invoked by uid 500); 10 Jul 2013 23:10:06 -0000 Delivered-To: apmail-climate-commits-archive@climate.apache.org Received: (qmail 61308 invoked by uid 500); 10 Jul 2013 23:10:06 -0000 Mailing-List: contact commits-help@climate.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@climate.incubator.apache.org Delivered-To: mailing list commits@climate.incubator.apache.org Received: (qmail 61300 invoked by uid 99); 10 Jul 2013 23:10:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Jul 2013 23:10:06 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Jul 2013 23:10:05 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id AB1D92388A9B; Wed, 10 Jul 2013 23:09:45 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1502053 - in /incubator/climate/trunk/rcmet/src/main/ui/app: index.html js/directives/PreviewMap.js Date: Wed, 10 Jul 2013 23:09:45 -0000 To: commits@climate.incubator.apache.org From: joyce@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20130710230945.AB1D92388A9B@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: joyce Date: Wed Jul 10 23:09:45 2013 New Revision: 1502053 URL: http://svn.apache.org/r1502053 Log: CLIMATE-189 - Fix incorrect overlay colors on preview maps - Change column layout on main page. Move the preview maps over slightly. - Make the PreviewMap directive check for another attribute when assigning colors to the map overlays. The index that is passed is used to index into the color array in the rootScope. Modified: incubator/climate/trunk/rcmet/src/main/ui/app/index.html incubator/climate/trunk/rcmet/src/main/ui/app/js/directives/PreviewMap.js Modified: incubator/climate/trunk/rcmet/src/main/ui/app/index.html URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/app/index.html?rev=1502053&r1=1502052&r2=1502053&view=diff ============================================================================== --- incubator/climate/trunk/rcmet/src/main/ui/app/index.html (original) +++ incubator/climate/trunk/rcmet/src/main/ui/app/index.html Wed Jul 10 23:09:45 2013 @@ -119,7 +119,7 @@
-
+
Start Date:
@@ -165,8 +165,8 @@
-
-
+
+
Modified: incubator/climate/trunk/rcmet/src/main/ui/app/js/directives/PreviewMap.js URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/app/js/directives/PreviewMap.js?rev=1502053&r1=1502052&r2=1502053&view=diff ============================================================================== --- incubator/climate/trunk/rcmet/src/main/ui/app/js/directives/PreviewMap.js (original) +++ incubator/climate/trunk/rcmet/src/main/ui/app/js/directives/PreviewMap.js Wed Jul 10 23:09:45 2013 @@ -21,7 +21,7 @@ App.Directives.directive('previewMap', f return { restrict: 'A', replace: true, - scope: {dataset: '=previewMap'}, + scope: {dataset: '=previewMap', index: '=index'}, template: '
', replace: true, link: function(scope, element, attrs) { @@ -31,7 +31,6 @@ App.Directives.directive('previewMap', f // has yet to run to evaluate it! We can't run a $digest in the middle of compilation, // so using an $observe (or $watch) is the best way to get the values. attrs.$observe('id', function(newId) { - //var map = L.map(scope.dataset.name, { var map = L.map(attrs.id, { zoom: 0, scrollWheelZoom: false, @@ -53,7 +52,7 @@ App.Directives.directive('previewMap', f var polygon = L.rectangle(bounds,{ stroke: false, - fillColor: $rootScope.fillColors[i], + fillColor: $rootScope.fillColors[scope.index], fillOpacity: 0.6 });