kepler.gl
Version:
kepler.gl is a webgl based application to visualize large scale location data in the browser
437 lines (435 loc) • 14.4 kB
JavaScript
// Copyright (c) 2020 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
export default {
property: {
weight: 'weight',
label: 'label',
fillColor: 'fill color',
color: 'color',
strokeColor: 'stroke color',
radius: 'radius',
outline: 'outline',
stroke: 'stroke',
density: 'density',
height: 'height',
sum: 'sum',
pointCount: 'Point Count'
},
placeholder: {
search: 'Search',
selectField: 'Select a field',
yAxis: 'Y Axis',
selectType: 'Select A Type',
selectValue: 'Select A Value',
enterValue: 'Enter a value',
empty: 'empty'
},
misc: {
by: '',
valuesIn: 'Values in',
valueEquals: 'Value equals',
dataSource: 'Data Source',
brushRadius: 'Brush Radius (km)',
empty: ' '
},
mapLayers: {
title: 'Map Layers',
label: 'Label',
road: 'Road',
border: 'Border',
building: 'Building',
water: 'Water',
land: 'Land',
'3dBuilding': '3d Building'
},
panel: {
text: {
label: 'label',
labelWithId: 'Label {labelId}',
fontSize: 'Font size',
fontColor: 'Font color',
textAnchor: 'Text anchor',
alignment: 'Alignment',
addMoreLabel: 'Add More Label'
}
},
sidebar: {
panels: {
layer: 'Layers',
filter: 'Filters',
interaction: 'Interactions',
basemap: 'Base map'
}
},
layer: {
required: 'Required*',
radius: 'Radius',
color: 'Color',
fillColor: 'Fill Color',
outline: 'Outline',
weight: 'Weight',
propertyBasedOn: '{property} based on',
coverage: 'Coverage',
stroke: 'Stroke',
strokeWidth: 'Stroke Width',
strokeColor: 'Stroke Color',
basic: 'Basic',
trailLength: 'Trail Length',
trailLengthDescription: 'Number of seconds for a path to completely fade out',
newLayer: 'new layer',
elevationByDescription: 'When off, height is based on count of points',
colorByDescription: 'When off, color is based on count of points',
aggregateBy: 'Aggregate {field} by',
'3DModel': '3D Model',
'3DModelOptions': '3D Model Options',
type: {
point: 'point',
arc: 'arc',
line: 'line',
grid: 'grid',
hexbin: 'hexbin',
polygon: 'polygon',
geojson: 'geojson',
cluster: 'cluster',
icon: 'icon',
heatmap: ' heatmap',
h3: 'H3',
trip: 'trip',
s2: 'S2',
'3d': '3D'
}
},
layerVisConfigs: {
strokeWidth: 'Stroke Width',
strokeWidthRange: 'Stroke Width Range',
radius: 'Radius',
fixedRadius: 'Fixed Radius to meter',
fixedRadiusDescription: 'Map radius to absolute radius in meters, e.g. 5 to 5 meters',
radiusRange: 'Radius Range',
clusterRadius: 'Cluster Radius in Pixels',
radiusRangePixels: 'Radius Range in pixels',
opacity: 'Opacity',
coverage: 'Coverage',
outline: 'Outline',
colorRange: 'Color range',
stroke: 'Stroke',
strokeColor: 'Stroke Color',
strokeColorRange: 'Stroke Color range',
targetColor: 'Target Color',
colorAggregation: 'Color Aggregation',
heightAggregation: 'Height Aggregation',
resolutionRange: 'Resolution range',
sizeScale: 'Size Scale',
worldUnitSize: 'World Unit Size',
elevationScale: 'Elevation Scale',
heightScale: 'Height Scale',
coverageRange: 'Coverage Range',
highPrecisionRendering: 'High Precision Rendering',
highPrecisionRenderingDescription: 'High precision will result in slower performance',
height: 'Height',
heightDescription: 'Click button at top right of the map to switch to 3d view',
fill: 'Fill',
enablePolygonHeight: 'Enable Polygon Height',
showWireframe: 'Show Wireframe',
weightIntensity: 'Weight Intensity',
zoomScale: 'Zoom Scale',
heightRange: 'Height Range'
},
layerManager: {
addData: 'Add Data',
addLayer: 'Add Layer',
layerBlending: 'Layer Blending'
},
mapManager: {
mapStyle: 'Map style',
addMapStyle: 'Add Map Style',
'3dBuildingColor': '3D Building Color'
},
layerConfiguration: {
defaultDescription: 'Calculate {property} based on selected field',
howTo: 'How to'
},
filterManager: {
addFilter: 'Add Filter'
},
datasetTitle: {
showDataTable: 'Show data table',
removeDataset: 'Remove dataset'
},
datasetInfo: {
rowCount: '{rowCount} rows'
},
tooltip: {
hideLayer: 'hide layer',
showLayer: 'show layer',
hideFeature: 'Hide Feature',
showFeature: 'Show feature',
hide: 'hide',
show: 'show',
removeLayer: 'Remove layer',
layerSettings: 'Layer settings',
closePanel: 'Close current panel',
switchToDualView: 'Switch to dual map view',
showLegend: 'show legend',
disable3DMap: 'Disable 3D Map',
DrawOnMap: 'Draw on map',
selectLocale: 'Select locale',
hideLayerPanel: 'Hide layer panel',
showLayerPanel: 'Show layer panel',
moveToTop: 'Move to top of data layers',
selectBaseMapStyle: 'Select Base Map Style',
delete: 'Delete',
timePlayback: 'Time Playback',
cloudStorage: 'Cloud Storage',
'3DMap': '3D Map'
},
toolbar: {
exportImage: 'Export Image',
exportData: 'Export Data',
exportMap: 'Export Map',
shareMapURL: 'Share Map URL',
saveMap: 'Save Map',
select: 'select',
polygon: 'polygon',
rectangle: 'rectangle',
hide: 'hide',
show: 'show',
en: 'English',
fi: 'Suomi'
},
modal: {
title: {
deleteDataset: 'Delete Dataset',
addDataToMap: 'Add Data To Map',
exportImage: 'Export Image',
exportData: 'Export Data',
exportMap: 'Export Map',
addCustomMapboxStyle: 'Add Custom Mapbox Style',
saveMap: 'Save Map',
shareURL: 'Share URL'
},
button: {
delete: 'Delete',
download: 'Download',
export: 'Export',
addStyle: 'Add Style',
save: 'Save',
defaultCancel: 'Cancel',
defaultConfirm: 'Confirm'
},
exportImage: {
ratioTitle: 'Ratio',
ratioDescription: 'Choose the ratio for various usages.',
ratioOriginalScreen: 'Original Screen',
ratioCustom: 'Custom',
ratio4_3: '4:3',
ratio16_9: '16:9',
resolutionTitle: 'Resolution',
resolutionDescription: 'High resolution is better for prints.',
mapLegendTitle: 'Map Legend',
mapLegendAdd: 'Add legend on map'
},
exportData: {
datasetTitle: 'Dataset',
datasetSubtitle: 'Choose the datasets you want to export',
allDatasets: 'All',
dataTypeTitle: 'Data Type',
dataTypeSubtitle: 'Choose the type of data you want to export',
filterDataTitle: 'Filter Data',
filterDataSubtitle: 'You can choose exporting original data or filtered data',
filteredData: 'Filtered data',
unfilteredData: 'Unfiltered Data',
fileCount: '{fileCount} Files',
rowCount: '{rowCount} Rows'
},
deleteData: {
warning: 'you are going to delete this dataset. It will affect {length} layers'
},
addStyle: {
publishTitle: '1. Publish your style at mapbox or provide access token',
publishSubtitle1: 'You can create your own map style at',
publishSubtitle2: 'and',
publishSubtitle3: 'publish',
publishSubtitle4: 'it.',
publishSubtitle5: 'To use private style, paste your',
publishSubtitle6: 'access token',
publishSubtitle7:
'here. *kepler.gl is a client-side application, data stays in your browser..',
exampleToken: 'e.g. pk.abcdefg.xxxxxx',
pasteTitle: '2. Paste style url',
pasteSubtitle1: 'What is a',
pasteSubtitle2: 'style URL',
namingTitle: '3. Name your style'
},
shareMap: {
shareUriTitle: 'Share Map Url',
shareUriSubtitle: 'Generate a map url to share with others',
cloudTitle: 'Cloud storage',
cloudSubtitle: 'Login and upload map data to your personal cloud storage',
shareDisclaimer:
'kepler.gl will save your map data to your personal cloud storage, only people with the URL can access your map and data. ' +
'You can edit/delete the data file in your cloud account anytime.',
gotoPage: 'Go to your Kepler.gl {currentProvider} page'
},
statusPanel: {
mapUploading: 'Map Uploading',
error: 'Error'
},
saveMap: {
title: 'Cloud storage',
subtitle: 'Login to save map to your personal cloud storage'
},
exportMap: {
formatTitle: 'Map format',
formatSubtitle: 'Choose the format to export your map to',
html: {
selection: 'Export your map into an interactive html file.',
tokenTitle: 'Mapbox access token',
tokenSubtitle: 'Use your own Mapbox access token in the html (optional)',
tokenPlaceholder: 'Paste your Mapbox access token',
tokenMisuseWarning:
'* If you do not provide your own token, the map may fail to display at any time when we replace ours to avoid misuse. ',
tokenDisclaimer: 'You can change the Mapbox token later using the following instructions: ',
tokenUpdate: 'How to update an existing map token.',
modeTitle: 'Map Mode',
modeSubtitle1: 'Select the app mode. More ',
modeSubtitle2: 'info',
modeDescription: 'Allow users to {mode} the map',
read: 'read',
edit: 'edit'
},
json: {
configTitle: 'Map Config',
configDisclaimer:
'Map config will be included in the Json file. If you are using kepler.gl in your own app. You can copy this config and pass it to ',
selection:
'Export current map data and config into a single Json file. You can later open the same map by uploading this file to kepler.gl.',
disclaimer:
'* Map config is coupled with loaded datasets. ‘dataId’ is used to bind layers, filters, and tooltips to a specific dataset. ' +
'When passing this config to addDataToMap, make sure the dataset id matches the dataId/s in this config.'
}
},
loadingDialog: {
loading: 'Loading...'
},
loadData: {
upload: 'Load Files',
storage: 'Load from Storage'
},
tripInfo: {
title: 'How to enable trip animation',
description1:
'In order to animate the path, the geoJSON data needs to contain `LineString` in its feature geometry, and the coordinates in the LineString need to have 4 elements in the formats of',
code: ' [longitude, latitude, altitude, timestamp] ',
description2:
'with the last element being a timestamp. Valid timestamp formats include unix in seconds such as `1564184363` or in milliseconds such as `1564184363000`.',
example: 'Example:'
},
iconInfo: {
title: 'How to draw icons',
description1:
'In your csv, create a column, put the name of the icon you want to draw in it. You can leave the cell empty if you do not want the icon to show for some points. When the column is named',
code: 'icon',
description2: ' kepler.gl will automatically create a icon layer for you.',
example: 'Example:',
icons: 'Icons'
},
storageMapViewer: {
lastModified: 'Last modified {lastUpdated} ago',
back: 'Back'
},
overwriteMap: {
title: 'Saving map...',
alreadyExists: 'already exists in your {mapSaved}. Would you like to overwrite it?'
},
loadStorageMap: {
back: 'Back',
goToPage: 'Go to your Kepler.gl {displayName} page',
storageMaps: 'Storage / Maps',
noSavedMaps: 'No saved maps yet'
}
},
header: {
visibleLayers: 'Visible layers',
layerLegend: 'Layer Legend'
},
interactions: {
tooltip: 'Tooltip',
brush: 'Brush',
coordinate: 'Coordinates'
},
layerBlending: {
title: 'Layer Blending',
additive: 'additive',
normal: 'normal',
subtractive: 'subtractive'
},
columns: {
title: 'Columns',
lat: 'lat',
lng: 'lon',
altitude: 'altitude',
icon: 'icon',
geojson: 'geojson',
arc: {
lat0: 'source lat',
lng0: 'source lng',
lat1: 'target lat',
lng1: 'target lng'
},
grid: {
worldUnitSize: 'Grid Size (km)'
},
hexagon: {
worldUnitSize: 'Hexagon Radius (km)'
}
},
color: {
customPalette: 'Custom Palette',
steps: 'steps',
type: 'type',
reversed: 'reversed'
},
scale: {
colorScale: 'Color Scale',
sizeScale: 'Size Scale',
strokeScale: 'Stroke Scale',
scale: 'Scale'
},
fileUploader: {
message: 'Drag & Drop Your File(s) Here',
chromeMessage:
'*Chrome user: Limit file size to 250mb, if need to upload larger file, try Safari',
disclaimer:
'*kepler.gl is a client-side application with no server backend. Data lives only on your machine/browser. ' +
'No information or map data is sent to any server.',
configUploadMessage:
'Upload **CSV**, **GeoJson** or saved map **Json**. Read more about [**supported file formats**]',
browseFiles: 'browse your files',
uploading: 'Uploading',
fileNotSupported: 'File {errorFiles} is not supported.',
or: 'or'
},
density: 'density',
'Bug Report': 'Bug Report',
'User Guide': 'User Guide',
Save: 'Save',
Share: 'Share'
};