Repository: climate Updated Branches: refs/heads/master 0e6517058 -> a663e1562
CLIMATE-390 - Fix broken map layers - The URL for the map tile layer that the Leaflet and Preview map directives were using is no longer valid. It has been replaced with a new one from the LeafletJS website. Project: http://git-wip-us.apache.org/repos/asf/climate/repo Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/750ab6fb Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/750ab6fb Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/750ab6fb Branch: refs/heads/master Commit: 750ab6fbe1abf5281da4982d41d8260bcc893803 Parents: 0e65170 Author: Michael Joyce <[email protected]> Authored: Fri Apr 4 16:43:45 2014 -0700 Committer: Michael Joyce <[email protected]> Committed: Fri Apr 4 16:46:21 2014 -0700 ---------------------------------------------------------------------- ocw-ui/frontend/app/js/directives/LeafletMap.js | 3 +-- ocw-ui/frontend/app/js/directives/PreviewMap.js | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/climate/blob/750ab6fb/ocw-ui/frontend/app/js/directives/LeafletMap.js ---------------------------------------------------------------------- diff --git a/ocw-ui/frontend/app/js/directives/LeafletMap.js b/ocw-ui/frontend/app/js/directives/LeafletMap.js index bd56801..0076179 100644 --- a/ocw-ui/frontend/app/js/directives/LeafletMap.js +++ b/ocw-ui/frontend/app/js/directives/LeafletMap.js @@ -32,8 +32,7 @@ App.Directives.directive('leafletMap', function($rootScope) { worldCopyJump: true, }); - //create a CloudMade tile layer and add it to the map - L.tileLayer('http://{s}.tile.cloudmade.com/57cbb6ca8cac418dbb1a402586df4528/997/256/{z}/{x}/{y}.png', {}).addTo($rootScope.map); + L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {}).addTo($rootScope.map); } }; }); http://git-wip-us.apache.org/repos/asf/climate/blob/750ab6fb/ocw-ui/frontend/app/js/directives/PreviewMap.js ---------------------------------------------------------------------- diff --git a/ocw-ui/frontend/app/js/directives/PreviewMap.js b/ocw-ui/frontend/app/js/directives/PreviewMap.js index f46b897..b172fe7 100644 --- a/ocw-ui/frontend/app/js/directives/PreviewMap.js +++ b/ocw-ui/frontend/app/js/directives/PreviewMap.js @@ -39,8 +39,7 @@ App.Directives.directive('previewMap', function($rootScope) { worldCopyJump: true, }); - //create a CloudMade tile layer and add it to the map - L.tileLayer('http://{s}.tile.cloudmade.com/57cbb6ca8cac418dbb1a402586df4528/997/256/{z}/{x}/{y}.png', {}).addTo(map); + L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {}).addTo(map); // Zoom the map to the dataset bound regions (or at least try our best to do so) var datasetBounds = [[scope.dataset.latlonVals.latMax, scope.dataset.latlonVals.lonMin],
