Stay organized with collections
Save and categorize content based on your preferences.
Add a 1-D Array to each feature in a collection by combining a list of properties for each feature into a 1-D Array. All of the properties must be numeric values. If a feature doesn't contain all of the named properties, or any of them aren't numeric, the feature will be dropped from the resulting collection.
Usage
Returns
FeatureCollection.makeArray(properties, name)
FeatureCollection
Argument
Type
Details
this: collection
FeatureCollection
The input collection from which properties will be selected.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-13 UTC."],[[["`makeArray()` combines specified numeric properties of features within a FeatureCollection into a new 1-D array property."],["Features lacking any of the specified properties, or containing non-numeric values in those properties, are excluded from the output."],["The resulting FeatureCollection contains the original features with an added array property holding the combined values."],["The array property is named using the 'name' argument, defaulting to \"array\" if not provided."]]],[]]