mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 17:38:54 +00:00
map visualization: draw_options to scope
This commit is contained in:
parent
f9e0ce8e9c
commit
2a27422df9
@ -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');
|
||||
}
|
||||
}
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user