UNPKG

@itwin/core-frontend

Version:
28 lines 1.23 kB
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *--------------------------------------------------------------------------------------------*/ /** @packageDocumentation * @module MapLayers */ import { PropertyRecord } from "@itwin/appui-abstract"; /** Contains record data of a [[MapLayerFeature]] instance . * @beta */ export class MapFeatureInfoRecord extends PropertyRecord { /** Construct a record from [PropertyValue]($appui-abstract) and [PropertyDescription]($appui-abstract) objects. */ constructor(value, property) { super(value, property); } } /** Utility class that creates a [PropertyRecord]($appui-abstract) out of [[MapLayerFeatureAttribute]] * @see [[MapLayerFeature]] * @beta */ export class MapLayerFeatureRecord { /** Convert a [[MapLayerFeatureAttribute]] object into [PropertyRecord]($appui-abstract) object. */ static createRecordFromAttribute(attribute) { return new PropertyRecord(attribute.value, attribute.property); } } //# sourceMappingURL=MapFeatureInfo.js.map