Skip to content

Commit 1d184cd

Browse files
long/lat label corrected
1 parent 23732dc commit 1d184cd

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/webfrontend/CustomDataTypeGeoref.coffee

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -460,17 +460,17 @@ class CustomDataTypeGeoref extends CustomDataTypeWithCommons
460460
name: "pointForm"
461461
class: "georefTextInputForm"
462462
fields: [
463-
form:
464-
label: $$("custom.data.type.georef.add_new.modal.form.longitude")
465-
hint: $$("custom.data.type.georef.add_new.modal.form.longitude.hint")
466-
type: CUI.Input
467-
name: "georef_add_new_point.longitude"
468-
,
469463
form:
470464
label: $$("custom.data.type.georef.add_new.modal.form.latitude")
471465
hint: $$("custom.data.type.georef.add_new.modal.form.latitude.hint")
472466
type: CUI.Input
473467
name: "georef_add_new_point.latitude"
468+
,
469+
form:
470+
label: $$("custom.data.type.georef.add_new.modal.form.longitude")
471+
hint: $$("custom.data.type.georef.add_new.modal.form.longitude.hint")
472+
type: CUI.Input
473+
name: "georef_add_new_point.longitude"
474474
]
475475
pointForm.start()
476476

@@ -502,7 +502,7 @@ class CustomDataTypeGeoref extends CustomDataTypeWithCommons
502502

503503
if (!isNaN(floatLatitude) && !isNaN(floatLongitude))
504504
# build geojson
505-
pointGeoJSON = '{ "type": "Feature", "properties": {}, "geometry": { "coordinates": [ ' + floatLatitude + ', ' + floatLongitude + ' ], "type": "Point" } }'
505+
pointGeoJSON = '{ "type": "Feature", "properties": {}, "geometry": { "coordinates": [ ' + floatLongitude + ', ' + floatLatitude + ' ], "type": "Point" } }'
506506
# change cdata and apply
507507
cdata.conceptURI = pointGeoJSON
508508
cdata.conceptName = 'Point'

0 commit comments

Comments
 (0)