map visualization: draw_options to scope

This commit is contained in:
Bruno Salerno 2015-07-03 18:02:22 -03:00
parent f9e0ce8e9c
commit 2a27422df9
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,6 @@
var defaultOptions = {
'height': 500,
'draw': 'Marker',
'draw_options' : ['Marker','Color'],
'classify':'none'
};
@ -230,6 +229,7 @@
restrict: 'E',
templateUrl: '/views/visualizations/map_editor.html',
link: function($scope, elm, attrs) {
$scope.draw_options = ['Marker','Color'];
$scope.classify_columns = $scope.queryResult.columnNames.concat('none');
}
}

View File

@ -9,7 +9,7 @@
<div class="form-group">
<label class="col-lg-2">Draw option</label>
<div class="col-sm-4">
<select ng-options="opt for opt in visualization.options.draw_options" ng-model="visualization.options.draw" class="form-control"></select>
<select ng-options="opt for opt in draw_options" ng-model="visualization.options.draw" class="form-control"></select>
</div>
</div>
<div class="form-group">