Configuration for the client.

This commit is contained in:
Your Name 2014-05-31 19:19:36 +02:00
parent 637fd10606
commit 249275bc0a
13 changed files with 53 additions and 28 deletions
app/scripts/directives

View file

@ -2,12 +2,13 @@
angular.module('ffffng')
.directive('fNodeForm', function () {
var ctrl = function ($scope, $timeout, Constraints, Validator, _) {
var ctrl = function ($scope, $timeout, Constraints, Validator, _, config) {
$scope.config = config;
angular.extend($scope, {
center: {
lat: 53.565278,
lng: 10.001389,
zoom: 10
lat: config.coordsSelector.lat,
lng: config.coordsSelector.lng,
zoom: config.coordsSelector.defaultZoom
},
markers: {},
layers: {