From 6af8b218a1d9be4d8dcf6a8398b08c874d8a12dc Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 15 May 2022 13:04:00 -0700 Subject: Update known attributes --- modern/src/common/attributes/useGeofenceAttributes.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'modern/src/common/attributes/useGeofenceAttributes.js') diff --git a/modern/src/common/attributes/useGeofenceAttributes.js b/modern/src/common/attributes/useGeofenceAttributes.js index 89908aa5..a5cd068b 100644 --- a/modern/src/common/attributes/useGeofenceAttributes.js +++ b/modern/src/common/attributes/useGeofenceAttributes.js @@ -1,8 +1,18 @@ import { useMemo } from 'react'; export default (t) => useMemo(() => ({ + color: { + name: t('attributeColor'), + type: 'string', + }, speedLimit: { name: t('attributeSpeedLimit'), - type: 'string', + type: 'number', + subtype: 'speed', + }, + polylineDistance: { + name: t('attributePolylineDistance'), + type: 'number', + subtype: 'distance', }, }), [t]); -- cgit v1.2.3