"use strict";
/*---------------------------------------------------------------------------------------------
* 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
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.MapLayerFeatureRecord = exports.MapFeatureInfoRecord = void 0;
const appui_abstract_1 = require("@itwin/appui-abstract");
/** Contains record data of a [[MapLayerFeature]] instance .
 * @beta
 */
class MapFeatureInfoRecord extends appui_abstract_1.PropertyRecord {
    /** Construct a record from [PropertyValue]($appui-abstract) and [PropertyDescription]($appui-abstract) objects. */
    constructor(value, property) {
        super(value, property);
    }
}
exports.MapFeatureInfoRecord = MapFeatureInfoRecord;
/** Utility class that creates a [PropertyRecord]($appui-abstract) out of [[MapLayerFeatureAttribute]]
 * @see [[MapLayerFeature]]
 * @beta
 */
class MapLayerFeatureRecord {
    /** Convert a [[MapLayerFeatureAttribute]] object into [PropertyRecord]($appui-abstract) object. */
    static createRecordFromAttribute(attribute) {
        return new appui_abstract_1.PropertyRecord(attribute.value, attribute.property);
    }
}
exports.MapLayerFeatureRecord = MapLayerFeatureRecord;
//# sourceMappingURL=MapFeatureInfo.js.map