Entity Type LODs (representations)


This is continued documentation about Entity LODs (representations) and how you can assign defaults through an Entity Type.

This is a common way to achieve repeated graphics for a large set of records.
For example the same tree model for all trees.

An Entity LOD will override the Entity Type LOD.


You can read about how to manage Client File records and generate download URLs here: Client and temp files.

Entity Type LOD requests

Below are the basic requests for managing LODs for an Entity Type.

Get Entity Type LODs

Response
interface IResponse {
    Items: {
        // ID of the related Client File record.
        "ClientFile.ID": string;
        // ID of the related Entity record.
        "Entity.ID": string;
        // Entity Type ID of the related Entity Type record.
        "EntityType.ID"?: string;
        // ID of the lod category.
        "LODCategory.Key": string;
        // Level of detail. 0 is the highest.
        Level: number;
        // LOD group within its Entity Type.
        // This is an optional layer of categorization you can apply.
        // Groups are driven by Entity Styling to let you load different LODs based on attribute values./
        // 'DEFAULT' or unset is the default group.
        Group?: string;
    }[];
}
Javascript example

Create Entity Type LOD

Request body
interface IRequest {
    // ID of the related Client File record.
    "ClientFile.ID": string;
}

Delete Entity Type LODs

Request body
interface IRequest {
    Items: {
        // Key of the related LOD Category.
        "LODCategory.Key": string;
        // Related level of detail.
        "Level": number;
    }[];
}