Skip to content

Commit 3c2db38

Browse files
author
Aymen
authoredJan 14, 2017
make aaal-to-schema-form-f.js handle GeoPoint
1 parent ee2ea10 commit 3c2db38

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
 

‎templates/app/global-services/aaal-to-schema-form-f.js

+15
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,21 @@
7171
schemaPropertyProperties.type = 'string';
7272
schemaPropertyProperties.format = 'date';
7373
}
74+
75+
// handle GeoPoint
76+
if (modelProperty.type === 'GeoPoint') {
77+
schemaPropertyProperties.type = 'object';
78+
schemaPropertyProperties.properties = {
79+
lng : {
80+
"type": "number",
81+
"title": "Longitude",
82+
},
83+
lat : {
84+
"title": "Latitude",
85+
"type": "number",
86+
}
87+
};
88+
}
7489

7590
return schemaPropertyProperties;
7691
}

0 commit comments

Comments
 (0)
Please sign in to comment.