Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1131 from geoadmin/fix_overlay
Browse files Browse the repository at this point in the history
Remove non working cross generation
  • Loading branch information
cedricmoullet committed Feb 15, 2014
2 parents 517d212 + 3369e7e commit 804dcfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/print/PrintDirective.js
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@
encLayers.push(graticule);
}
// FIXME this is a temporary solution
var overlays = $scope.map.getOverlays();
/*var overlays = $scope.map.getOverlays();
var resolution = $scope.map.getView().getResolution();
overlays.forEach(function(overlay) {
Expand Down Expand Up @@ -633,7 +633,7 @@
};
encLayers.push(cross);
}
});
});*/

// scale = resolution * inches per map unit (m) * dpi
var scale = parseInt(view.getResolution() * 39.37 * 254);
Expand Down

0 comments on commit 804dcfa

Please sign in to comment.