[Maps] Language improvements (#29473)

This commit is contained in:
Thomas Neirynck 2019-02-01 10:28:22 -05:00 committed by GitHub
parent 006cd31007
commit e1a1bb8359
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 17 additions and 17 deletions

View file

@ -197,7 +197,7 @@ app.controller('GisMapController', ($scope, $route, config, kbnUrl, localStorage
// k7design breadcrumbs
// TODO subscribe to store change and change when store updates title
chrome.breadcrumbs.set([
{ text: 'Map', href: '#' },
{ text: 'Maps', href: '#' },
{ text: $scope.getMapTitle() }
]);
config.watch('k7design', (val) => $scope.showPluginBreadcrumbs = !val);

View file

@ -46,7 +46,7 @@ export function SettingsPanel(props) {
const renderZoomSliders = () => {
return (
<EuiFormRow
helpText="Display layer when map is within zoom level range."
helpText="Display layer when map is in zoom range."
>
<EuiFlexGroup>
<EuiFlexItem>
@ -85,7 +85,7 @@ export function SettingsPanel(props) {
const renderLabel = () => {
return (
<EuiFormRow
label="Layer display name"
label="Layer name"
>
<EuiFieldText
value={props.label}

View file

@ -78,7 +78,7 @@ export class SetView extends React.Component {
min: -90,
max: 90,
onChange: this._onLatChange,
label: 'latitude',
label: 'Latitude',
dataTestSubj: 'latitudeInput',
});
@ -87,7 +87,7 @@ export class SetView extends React.Component {
min: -180,
max: 180,
onChange: this._onLonChange,
label: 'longitude',
label: 'Longitude',
dataTestSubj: 'longitudeInput',
});
@ -96,7 +96,7 @@ export class SetView extends React.Component {
min: 0,
max: 24,
onChange: this._onZoomChange,
label: 'zoom',
label: 'Zoom',
dataTestSubj: 'zoomInput',
});

View file

@ -37,7 +37,7 @@ export function ViewControl({ isSetViewOpen, closeSetView, openSetView, mouseCoo
onClick={toggleSetViewVisibility}
data-test-subj="toggleSetViewVisibilityButton"
>
Goto
Go to
</EuiButton>)}
isOpen={isSetViewOpen}
closePopover={closeSetView}

View file

@ -324,7 +324,7 @@ export class MapListing extends React.Component {
data-test-subj="newMapLink"
fill
>
Create new map
Create map
</EuiButton>
</EuiFlexItem>
);
@ -337,7 +337,7 @@ export class MapListing extends React.Component {
<EuiFlexItem grow={false}>
<EuiTitle size="l">
<h1>
GIS maps
Maps
</h1>
</EuiTitle>
</EuiFlexItem>

View file

@ -34,7 +34,7 @@ const requestTypeOptions = [
value: RENDER_AS.GRID
},
{
label: 'heatmap',
label: 'heat map',
value: RENDER_AS.HEATMAP
}
];

View file

@ -52,7 +52,7 @@ export class ESGeoGridSource extends AbstractESSource {
static type = 'ES_GEO_GRID';
static title = 'Elasticsearch grid aggregation';
static description = 'Group geospatial data in grids with metrics for each gridded cell';
static description = 'Geospatial data grouped in grids with metrics for each gridded cell';
static createDescriptor({ indexPatternId, geoField, requestType, resolution }) {
return {

View file

@ -22,7 +22,7 @@ export class ESSearchSource extends AbstractESSource {
static type = 'ES_SEARCH';
static title = 'Elasticsearch documents';
static description = 'Geospatial data from an Elasticsearch index';
static description = 'Geospatial data from a Kibana index pattern';
static renderEditor({ onPreviewSource }) {
const onSelect = (layerConfig) => {

View file

@ -80,7 +80,7 @@ export class UpdateSourceEditor extends Component {
<EuiFormRow>
<EuiSwitch
label="Only filter for data in the visible map area"
label="Dynamically filter for data in the visible map area."
checked={this.props.filterByMapBounds}
onChange={this.onFilterByMapBoundsChange}
/>

View file

@ -129,12 +129,12 @@ class WMSEditor extends React.Component {
onChange={(e) => this._handleServiceUrlChange(e)}
/>
</EuiFormRow>
<EuiFormRow label="Layers (comma-separated list)">
<EuiFormRow label="Layers" helpText={"use comma separated list of layer names"}>
<EuiFieldText
onChange={(e) => this._handleLayersChange(e)}
/>
</EuiFormRow>
<EuiFormRow label="Styles (comma-separated list)">
<EuiFormRow label="Styles" helpText={"use comma separated list of style names"}>
<EuiFieldText
onChange={(e) => this._handleStylesChange(e)}
/>

View file

@ -93,7 +93,7 @@ export class StaticDynamicStyleRow extends React.Component {
render() {
const isDynamic = this._isDynamic();
const dynamicTooltipContent =
isDynamic ? "Disable dynamic styling." : "Enable dynamic styling.";
isDynamic ? "Use static styling properties to symbolize features." : "Use property values to symbolize features.";
return (
<EuiFlexGroup gutterSize="s">

View file

@ -45,7 +45,7 @@ export class VectorStyle {
return 'Vector style';
}
static description = 'Link styles to property values for data driven styling.';
static description = '';
static renderEditor({ handleStyleChange, style, layer }) {