Skip to content

Commit

Permalink
Move snapping values to AbstractController
Browse files Browse the repository at this point in the history
  • Loading branch information
llienher committed Aug 23, 2019
1 parent 05e1254 commit 332b82f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions contribs/gmf/apps/desktop/Controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,6 @@ exports.module = angular.module('Appdesktop', [
gmfControllersAbstractDesktopController.module.name,
]);

exports.module.value('ngeoSnappingTolerance', 20);
exports.module.value('ngeoSnappingSource', new olSourceVector());

exports.module.value('gmfContextualdatacontentTemplateUrl', 'gmf/contextualdata');
exports.module.run(/* @ngInject */ ($templateCache) => {
$templateCache.put('gmf/contextualdata', require('./contextualdata.html'));
Expand Down
3 changes: 3 additions & 0 deletions contribs/gmf/src/controllers/AbstractDesktopController.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,9 @@ exports.module.value('ngeoQueryOptions', {
'limit': 20
});

exports.module.value('ngeoSnappingTolerance', 20);
exports.module.value('ngeoSnappingSource', new olSourceVector());

exports.module.value('ngeoMeasurePrecision', 3);
exports.module.value('ngeoMeasureDecimals', 0);

Expand Down

0 comments on commit 332b82f

Please sign in to comment.