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 c6d818e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 0 additions & 4 deletions contribs/gmf/apps/desktop/Controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import ngeoProjEPSG21781 from 'ngeo/proj/EPSG21781.js';
import * as olBase from 'ol/index.js';
import Raven from 'raven-js/src/raven.js';
import RavenPluginsAngular from 'raven-js/plugins/angular.js';
import olSourceVector from 'ol/source/Vector.js';

if (!window.requestAnimationFrame) {
alert('Your browser is not supported, please update it or use another one. You will be redirected.\n\n'
Expand Down Expand Up @@ -124,9 +123,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 c6d818e

Please sign in to comment.