getProperty
Returns a copy of the value of the metadata in the cell with the given name.
// Display all the properties for a voxel cell in the console log.
const names = voxelCell.getNames();
for (let i = 0; i < names.length; ++i) {
const name = names[i];
console.log(`{name}: ${voxelCell.getProperty(name)}`);
}
Content copied to clipboard
Return
The value of the property or undefined
if the feature does not have this property.
Parameters
name
The case-sensitive name of the property.