Skip to content

Commit 856026d

Browse files
committed
Changed geometryTypes to array
1 parent 7397384 commit 856026d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/client/javascripts/geospatial-map.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -564,10 +564,10 @@ function getValueRenderer(geojson, geospatialInput) {
564564
function getUIManager(geojson, map, mapId, listEl, geospatialInput, options) {
565565
/**
566566
* Get a CSV list of geometry types the user can create
567-
* @returns {string}
567+
* @returns {string[]}
568568
*/
569569
function getAllowableGeometryTypes() {
570-
return options.geometryTypes ?? ''
570+
return options.geometryTypes ? options.geometryTypes.split(',') : []
571571
}
572572

573573
/**
@@ -1157,7 +1157,7 @@ function onListElKeydownFactory() {
11571157
/**
11581158
* Returns the list of geometry types a user can create
11591159
* @callback GetAllowableGeometryTypes
1160-
* @returns {string}
1160+
* @returns {string[]}
11611161
*/
11621162

11631163
/**
@@ -1189,7 +1189,7 @@ function onListElKeydownFactory() {
11891189
* @property {HTMLDivElement} listEl - the summary list of features
11901190
* @property {ToggleActionButtons} toggleActionButtons - function that toggles the action buttons
11911191
* @property {FocusDescriptionInput} focusDescriptionInput - function that sets focus to a description input element
1192-
* @property {GetAllowableGeometryTypes} getAllowableGeometryTypes - function that returns the list of geometry types a user can create
1192+
* @property {GetAllowableGeometryTypes} getAllowableGeometryTypes - function that returns the array of geometry types a user can create
11931193
*/
11941194

11951195
/**

0 commit comments

Comments
 (0)