aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/attributes/useGeofenceAttributes.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/common/attributes/useGeofenceAttributes.js')
-rw-r--r--modern/src/common/attributes/useGeofenceAttributes.js12
1 files changed, 11 insertions, 1 deletions
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]);