|
|
|
@ -546,6 +546,20 @@ export const mapPolygonSchema = |
|
|
|
type: 'boolean', |
|
|
|
default: false |
|
|
|
}, |
|
|
|
polygonTooltipPattern: { |
|
|
|
title: 'Tooltip (for ex. \'Text ${keyName} units.\' or <link-act name=\'my-action\'>Link text</link-act>\')', |
|
|
|
type: 'string', |
|
|
|
default: '<b>${entityName}</b><br/><br/><b>TimeStamp:</b> ${ts:7}' |
|
|
|
}, |
|
|
|
usePolygonTooltipFunction: { |
|
|
|
title: 'Use polygon tooltip function', |
|
|
|
type: 'boolean', |
|
|
|
default: false |
|
|
|
}, |
|
|
|
polygonTooltipFunction: { |
|
|
|
title: 'Polygon tooltip function: f(data, dsData, dsIndex)', |
|
|
|
type: 'string' |
|
|
|
}, |
|
|
|
usePolygonColorFunction: { |
|
|
|
title: 'Use polygon color function', |
|
|
|
type: 'boolean', |
|
|
|
@ -570,7 +584,15 @@ export const mapPolygonSchema = |
|
|
|
key: 'polygonStrokeColor', |
|
|
|
type: 'color' |
|
|
|
}, |
|
|
|
'polygonStrokeOpacity', 'polygonStrokeWeight', 'usePolygonColorFunction', 'showPolygonTooltip', |
|
|
|
'polygonStrokeOpacity', 'polygonStrokeWeight', 'showPolygonTooltip', |
|
|
|
{ |
|
|
|
key: 'polygonTooltipPattern', |
|
|
|
type: 'textarea' |
|
|
|
}, 'usePolygonTooltipFunction', { |
|
|
|
key: 'polygonTooltipFunction', |
|
|
|
type: 'javascript' |
|
|
|
}, |
|
|
|
'usePolygonColorFunction', |
|
|
|
{ |
|
|
|
key: 'polygonColorFunction', |
|
|
|
type: 'javascript' |
|
|
|
@ -710,6 +732,161 @@ export const imageMapSettingsSchema = |
|
|
|
] |
|
|
|
}; |
|
|
|
|
|
|
|
export const pathSchema = |
|
|
|
{ |
|
|
|
schema: { |
|
|
|
title: 'Trip Animation Path Configuration', |
|
|
|
type: 'object', |
|
|
|
properties: { |
|
|
|
color: { |
|
|
|
title: 'Path color', |
|
|
|
type: 'string' |
|
|
|
}, |
|
|
|
strokeWeight: { |
|
|
|
title: 'Stroke weight', |
|
|
|
type: 'number', |
|
|
|
default: 2 |
|
|
|
}, |
|
|
|
strokeOpacity: { |
|
|
|
title: 'Stroke opacity', |
|
|
|
type: 'number', |
|
|
|
default: 1 |
|
|
|
}, |
|
|
|
useColorFunction: { |
|
|
|
title: 'Use path color function', |
|
|
|
type: 'boolean', |
|
|
|
default: false |
|
|
|
}, |
|
|
|
colorFunction: { |
|
|
|
title: 'Path color function: f(data, dsData, dsIndex)', |
|
|
|
type: 'string' |
|
|
|
}, |
|
|
|
usePolylineDecorator: { |
|
|
|
title: 'Use path decorator', |
|
|
|
type: 'boolean', |
|
|
|
default: false |
|
|
|
}, |
|
|
|
decoratorSymbol: { |
|
|
|
title: 'Decorator symbol', |
|
|
|
type: 'string', |
|
|
|
default: 'arrowHead' |
|
|
|
}, |
|
|
|
decoratorSymbolSize: { |
|
|
|
title: 'Decorator symbol size (px)', |
|
|
|
type: 'number', |
|
|
|
default: 10 |
|
|
|
}, |
|
|
|
useDecoratorCustomColor: { |
|
|
|
title: 'Use path decorator custom color', |
|
|
|
type: 'boolean', |
|
|
|
default: false |
|
|
|
}, |
|
|
|
decoratorCustomColor: { |
|
|
|
title: 'Decorator custom color', |
|
|
|
type: 'string', |
|
|
|
default: '#000' |
|
|
|
}, |
|
|
|
decoratorOffset: { |
|
|
|
title: 'Decorator offset', |
|
|
|
type: 'string', |
|
|
|
default: '20px' |
|
|
|
}, |
|
|
|
endDecoratorOffset: { |
|
|
|
title: 'End decorator offset', |
|
|
|
type: 'string', |
|
|
|
default: '20px' |
|
|
|
}, |
|
|
|
decoratorRepeat: { |
|
|
|
title: 'Decorator repeat', |
|
|
|
type: 'string', |
|
|
|
default: '20px' |
|
|
|
} |
|
|
|
}, |
|
|
|
required: [] |
|
|
|
}, |
|
|
|
form: [ |
|
|
|
{ |
|
|
|
key: 'color', |
|
|
|
type: 'color' |
|
|
|
}, 'useColorFunction', { |
|
|
|
key: 'colorFunction', |
|
|
|
type: 'javascript' |
|
|
|
}, 'strokeWeight', 'strokeOpacity', |
|
|
|
'usePolylineDecorator', { |
|
|
|
key: 'decoratorSymbol', |
|
|
|
type: 'rc-select', |
|
|
|
multiple: false, |
|
|
|
items: [{ |
|
|
|
value: 'arrowHead', |
|
|
|
label: 'Arrow' |
|
|
|
}, { |
|
|
|
value: 'dash', |
|
|
|
label: 'Dash' |
|
|
|
}] |
|
|
|
}, 'decoratorSymbolSize', 'useDecoratorCustomColor', { |
|
|
|
key: 'decoratorCustomColor', |
|
|
|
type: 'color' |
|
|
|
}, { |
|
|
|
key: 'decoratorOffset', |
|
|
|
type: 'textarea' |
|
|
|
}, { |
|
|
|
key: 'endDecoratorOffset', |
|
|
|
type: 'textarea' |
|
|
|
}, { |
|
|
|
key: 'decoratorRepeat', |
|
|
|
type: 'textarea' |
|
|
|
} |
|
|
|
] |
|
|
|
}; |
|
|
|
|
|
|
|
export const pointSchema = |
|
|
|
{ |
|
|
|
schema: { |
|
|
|
title: 'Trip Animation Path Configuration', |
|
|
|
type: 'object', |
|
|
|
properties: { |
|
|
|
showPoints: { |
|
|
|
title: 'Show points', |
|
|
|
type: 'boolean', |
|
|
|
default: false |
|
|
|
}, |
|
|
|
pointColor: { |
|
|
|
title: 'Point color', |
|
|
|
type: 'string' |
|
|
|
}, |
|
|
|
pointSize: { |
|
|
|
title: 'Point size (px)', |
|
|
|
type: 'number', |
|
|
|
default: 10 |
|
|
|
}, |
|
|
|
usePointAsAnchor: { |
|
|
|
title: 'Use point as anchor', |
|
|
|
type: 'boolean', |
|
|
|
default: false |
|
|
|
}, |
|
|
|
pointAsAnchorFunction: { |
|
|
|
title: 'Point as anchor function: f(data, dsData, dsIndex)', |
|
|
|
type: 'string' |
|
|
|
}, |
|
|
|
pointTooltipOnRightPanel: { |
|
|
|
title: 'Independant point tooltip', |
|
|
|
type: 'boolean', |
|
|
|
default: true |
|
|
|
}, |
|
|
|
}, |
|
|
|
required: [] |
|
|
|
}, |
|
|
|
form: [ |
|
|
|
'showPoints', { |
|
|
|
key: 'pointColor', |
|
|
|
type: 'color' |
|
|
|
}, 'pointSize', 'usePointAsAnchor', { |
|
|
|
key: 'pointAsAnchorFunction', |
|
|
|
type: 'javascript' |
|
|
|
}, 'pointTooltipOnRightPanel', |
|
|
|
] |
|
|
|
}; |
|
|
|
|
|
|
|
export const mapProviderSchema = |
|
|
|
{ |
|
|
|
schema: { |
|
|
|
@ -755,7 +932,6 @@ export const mapProviderSchema = |
|
|
|
] |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
export const tripAnimationSchema = { |
|
|
|
schema: { |
|
|
|
title: 'Openstreet Map Configuration', |
|
|
|
@ -776,11 +952,6 @@ export const tripAnimationSchema = { |
|
|
|
type: 'string', |
|
|
|
default: 'longitude' |
|
|
|
}, |
|
|
|
polKeyName: { |
|
|
|
title: 'Polygon key name', |
|
|
|
type: 'string', |
|
|
|
default: 'coordinates' |
|
|
|
}, |
|
|
|
showLabel: { |
|
|
|
title: 'Show label', |
|
|
|
type: 'boolean', |
|
|
|
@ -834,148 +1005,6 @@ export const tripAnimationSchema = { |
|
|
|
title: 'Tooltip function: f(data, dsData, dsIndex)', |
|
|
|
type: 'string' |
|
|
|
}, |
|
|
|
color: { |
|
|
|
title: 'Path color', |
|
|
|
type: 'string' |
|
|
|
}, |
|
|
|
strokeWeight: { |
|
|
|
title: 'Stroke weight', |
|
|
|
type: 'number', |
|
|
|
default: 2 |
|
|
|
}, |
|
|
|
strokeOpacity: { |
|
|
|
title: 'Stroke opacity', |
|
|
|
type: 'number', |
|
|
|
default: 1 |
|
|
|
}, |
|
|
|
useColorFunction: { |
|
|
|
title: 'Use path color function', |
|
|
|
type: 'boolean', |
|
|
|
default: false |
|
|
|
}, |
|
|
|
colorFunction: { |
|
|
|
title: 'Path color function: f(data, dsData, dsIndex)', |
|
|
|
type: 'string' |
|
|
|
}, |
|
|
|
usePolylineDecorator: { |
|
|
|
title: 'Use path decorator', |
|
|
|
type: 'boolean', |
|
|
|
default: false |
|
|
|
}, |
|
|
|
decoratorSymbol: { |
|
|
|
title: 'Decorator symbol', |
|
|
|
type: 'string', |
|
|
|
default: 'arrowHead' |
|
|
|
}, |
|
|
|
decoratorSymbolSize: { |
|
|
|
title: 'Decorator symbol size (px)', |
|
|
|
type: 'number', |
|
|
|
default: 10 |
|
|
|
}, |
|
|
|
useDecoratorCustomColor: { |
|
|
|
title: 'Use path decorator custom color', |
|
|
|
type: 'boolean', |
|
|
|
default: false |
|
|
|
}, |
|
|
|
decoratorCustomColor: { |
|
|
|
title: 'Decorator custom color', |
|
|
|
type: 'string', |
|
|
|
default: '#000' |
|
|
|
}, |
|
|
|
decoratorOffset: { |
|
|
|
title: 'Decorator offset', |
|
|
|
type: 'string', |
|
|
|
default: '20px' |
|
|
|
}, |
|
|
|
endDecoratorOffset: { |
|
|
|
title: 'End decorator offset', |
|
|
|
type: 'string', |
|
|
|
default: '20px' |
|
|
|
}, |
|
|
|
decoratorRepeat: { |
|
|
|
title: 'Decorator repeat', |
|
|
|
type: 'string', |
|
|
|
default: '20px' |
|
|
|
}, |
|
|
|
showPolygon: { |
|
|
|
title: 'Show polygon', |
|
|
|
type: 'boolean', |
|
|
|
default: false |
|
|
|
}, |
|
|
|
polygonTooltipPattern: { |
|
|
|
title: 'Tooltip (for ex. \'Text ${keyName} units.\' or <link-act name=\'my-action\'>Link text</link-act>\')', |
|
|
|
type: 'string', |
|
|
|
default: '<b>${entityName}</b><br/><br/><b>TimeStamp:</b> ${ts:7}' |
|
|
|
}, |
|
|
|
usePolygonTooltipFunction: { |
|
|
|
title: 'Use polygon tooltip function', |
|
|
|
type: 'boolean', |
|
|
|
default: false |
|
|
|
}, |
|
|
|
polygonTooltipFunction: { |
|
|
|
title: 'Polygon tooltip function: f(data, dsData, dsIndex)', |
|
|
|
type: 'string' |
|
|
|
}, |
|
|
|
polygonColor: { |
|
|
|
title: 'Polygon color', |
|
|
|
type: 'string' |
|
|
|
}, |
|
|
|
polygonOpacity: { |
|
|
|
title: 'Polygon opacity', |
|
|
|
type: 'number', |
|
|
|
default: 0.5 |
|
|
|
}, |
|
|
|
polygonStrokeColor: { |
|
|
|
title: 'Polygon border color', |
|
|
|
type: 'string' |
|
|
|
}, |
|
|
|
polygonStrokeOpacity: { |
|
|
|
title: 'Polygon border opacity', |
|
|
|
type: 'number', |
|
|
|
default: 1 |
|
|
|
}, |
|
|
|
polygonStrokeWeight: { |
|
|
|
title: 'Polygon border weight', |
|
|
|
type: 'number', |
|
|
|
default: 1 |
|
|
|
}, |
|
|
|
usePolygonColorFunction: { |
|
|
|
title: 'Use polygon color function', |
|
|
|
type: 'boolean', |
|
|
|
default: false |
|
|
|
}, |
|
|
|
polygonColorFunction: { |
|
|
|
title: 'Polygon Color function: f(data, dsData, dsIndex)', |
|
|
|
type: 'string' |
|
|
|
}, |
|
|
|
showPoints: { |
|
|
|
title: 'Show points', |
|
|
|
type: 'boolean', |
|
|
|
default: false |
|
|
|
}, |
|
|
|
pointColor: { |
|
|
|
title: 'Point color', |
|
|
|
type: 'string' |
|
|
|
}, |
|
|
|
pointSize: { |
|
|
|
title: 'Point size (px)', |
|
|
|
type: 'number', |
|
|
|
default: 10 |
|
|
|
}, |
|
|
|
usePointAsAnchor: { |
|
|
|
title: 'Use point as anchor', |
|
|
|
type: 'boolean', |
|
|
|
default: false |
|
|
|
}, |
|
|
|
pointAsAnchorFunction: { |
|
|
|
title: 'Point as anchor function: f(data, dsData, dsIndex)', |
|
|
|
type: 'string' |
|
|
|
}, |
|
|
|
pointTooltipOnRightPanel: { |
|
|
|
title: 'Independant point tooltip', |
|
|
|
type: 'boolean', |
|
|
|
default: true |
|
|
|
}, |
|
|
|
autocloseTooltip: { |
|
|
|
title: 'Auto-close point popup', |
|
|
|
type: 'boolean', |
|
|
|
@ -1015,111 +1044,35 @@ export const tripAnimationSchema = { |
|
|
|
}, |
|
|
|
required: [] |
|
|
|
}, |
|
|
|
form: [{ |
|
|
|
key: 'mapProvider', |
|
|
|
type: 'rc-select', |
|
|
|
multiple: false, |
|
|
|
items: [{ |
|
|
|
value: 'OpenStreetMap.Mapnik', |
|
|
|
label: 'OpenStreetMap.Mapnik (Default)' |
|
|
|
}, { |
|
|
|
value: 'OpenStreetMap.BlackAndWhite', |
|
|
|
label: 'OpenStreetMap.BlackAndWhite' |
|
|
|
}, { |
|
|
|
value: 'OpenStreetMap.HOT', |
|
|
|
label: 'OpenStreetMap.HOT' |
|
|
|
}, { |
|
|
|
value: 'Esri.WorldStreetMap', |
|
|
|
label: 'Esri.WorldStreetMap' |
|
|
|
}, { |
|
|
|
value: 'Esri.WorldTopoMap', |
|
|
|
label: 'Esri.WorldTopoMap' |
|
|
|
}, { |
|
|
|
value: 'CartoDB.Positron', |
|
|
|
label: 'CartoDB.Positron' |
|
|
|
}, { |
|
|
|
value: 'CartoDB.DarkMatter', |
|
|
|
label: 'CartoDB.DarkMatter' |
|
|
|
}] |
|
|
|
}, 'normalizationStep', 'latKeyName', 'lngKeyName', 'polKeyName', 'showLabel', 'label', 'useLabelFunction', { |
|
|
|
form: ['normalizationStep', 'latKeyName', 'lngKeyName', 'showLabel', 'label', 'useLabelFunction', { |
|
|
|
key: 'labelFunction', |
|
|
|
type: 'javascript' |
|
|
|
}, 'showTooltip', { |
|
|
|
key: 'tooltipColor', |
|
|
|
type: 'color' |
|
|
|
}, { |
|
|
|
key: 'tooltipFontColor', |
|
|
|
type: 'color' |
|
|
|
}, 'tooltipOpacity', { |
|
|
|
key: 'tooltipPattern', |
|
|
|
type: 'textarea' |
|
|
|
}, 'useTooltipFunction', { |
|
|
|
key: 'tooltipFunction', |
|
|
|
type: 'javascript' |
|
|
|
}, { |
|
|
|
key: 'color', |
|
|
|
type: 'color' |
|
|
|
}, 'useColorFunction', { |
|
|
|
key: 'colorFunction', |
|
|
|
type: 'javascript' |
|
|
|
}, 'usePolylineDecorator', { |
|
|
|
key: 'decoratorSymbol', |
|
|
|
type: 'rc-select', |
|
|
|
multiple: false, |
|
|
|
items: [{ |
|
|
|
value: 'arrowHead', |
|
|
|
label: 'Arrow' |
|
|
|
key: 'tooltipColor', |
|
|
|
type: 'color' |
|
|
|
}, { |
|
|
|
key: 'tooltipFontColor', |
|
|
|
type: 'color' |
|
|
|
}, 'tooltipOpacity', { |
|
|
|
key: 'tooltipPattern', |
|
|
|
type: 'textarea' |
|
|
|
}, 'useTooltipFunction', { |
|
|
|
key: 'tooltipFunction', |
|
|
|
type: 'javascript' |
|
|
|
}, 'autocloseTooltip', { |
|
|
|
key: 'markerImage', |
|
|
|
type: 'image' |
|
|
|
}, 'markerImageSize', 'rotationAngle', 'useMarkerImageFunction', |
|
|
|
{ |
|
|
|
key: 'markerImageFunction', |
|
|
|
type: 'javascript' |
|
|
|
}, { |
|
|
|
value: 'dash', |
|
|
|
label: 'Dash' |
|
|
|
key: 'markerImages', |
|
|
|
items: [ |
|
|
|
{ |
|
|
|
key: 'markerImages[]', |
|
|
|
type: 'image' |
|
|
|
} |
|
|
|
] |
|
|
|
}] |
|
|
|
}, 'decoratorSymbolSize', 'useDecoratorCustomColor', { |
|
|
|
key: 'decoratorCustomColor', |
|
|
|
type: 'color' |
|
|
|
}, { |
|
|
|
key: 'decoratorOffset', |
|
|
|
type: 'textarea' |
|
|
|
}, { |
|
|
|
key: 'endDecoratorOffset', |
|
|
|
type: 'textarea' |
|
|
|
}, { |
|
|
|
key: 'decoratorRepeat', |
|
|
|
type: 'textarea' |
|
|
|
}, 'strokeWeight', 'strokeOpacity', 'showPolygon', { |
|
|
|
key: 'polygonTooltipPattern', |
|
|
|
type: 'textarea' |
|
|
|
}, 'usePolygonTooltipFunction', { |
|
|
|
key: 'polygonTooltipFunction', |
|
|
|
type: 'javascript' |
|
|
|
}, { |
|
|
|
key: 'polygonColor', |
|
|
|
type: 'color' |
|
|
|
}, 'polygonOpacity', { |
|
|
|
key: 'polygonStrokeColor', |
|
|
|
type: 'color' |
|
|
|
}, 'polygonStrokeOpacity', 'polygonStrokeWeight', 'usePolygonColorFunction', { |
|
|
|
key: 'polygonColorFunction', |
|
|
|
type: 'javascript' |
|
|
|
}, 'showPoints', { |
|
|
|
key: 'pointColor', |
|
|
|
type: 'color' |
|
|
|
}, 'pointSize', 'usePointAsAnchor', { |
|
|
|
key: 'pointAsAnchorFunction', |
|
|
|
type: 'javascript' |
|
|
|
}, 'pointTooltipOnRightPanel', 'autocloseTooltip', { |
|
|
|
key: 'markerImage', |
|
|
|
type: 'image' |
|
|
|
}, 'markerImageSize', 'rotationAngle', 'useMarkerImageFunction', |
|
|
|
{ |
|
|
|
key: 'markerImageFunction', |
|
|
|
type: 'javascript' |
|
|
|
}, { |
|
|
|
key: 'markerImages', |
|
|
|
items: [ |
|
|
|
{ |
|
|
|
key: 'markerImages[]', |
|
|
|
type: 'image' |
|
|
|
} |
|
|
|
] |
|
|
|
}] |
|
|
|
} |
|
|
|
|