Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save layer setting in the region map UI #12956

Merged
merged 2 commits into from
Jul 27, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/core_plugins/region_map/public/region_map_vis_params.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
id="regionMap"
class="kuiSelect kuiSideBarSelect"
ng-model="vis.params.selectedLayer"
ng-options="layer.name for layer in collections.vectorLayers"
ng-options="layer.name for layer in collections.vectorLayers track by layer.url"
ng-change="onLayerChange()"
ng-init="vis.params.selectedLayer=collections.vectorLayers[0]"
></select>
</div>
</div>
Expand All @@ -29,8 +28,7 @@
<div class="kuiSideBarFormRow__control">
<select id="joinField"
ng-model="vis.params.selectedJoinField"
ng-options="field.description for field in vis.params.selectedLayer.fields"
ng-init="vis.params.selectedJoinField=vis.params.selectedLayer.fields[0]"
ng-options="field.description for field in vis.params.selectedLayer.fields track by field.name"
>
<option value=''>Select</option></select>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ uiModules.get('kibana/region_map')
$scope.vis.params.selectedJoinField = $scope.vis.params.selectedLayer.fields[0];
}


}
};
});