MVFv3 API Documentation
    Preparing search index...

    A texture is a repeated image applied to some surface of a polygon. It is designed to be consumed by 3D SDKs like Mappedin JS.

    type EnterpriseTexture = {
        repeat: { u: number; v: number };
        offset: { u: number; v: number };
        rotation: number;
        path: string;
        face: "unknown" | "top" | "side";
        surface: "unknown" | "inside" | "outside" | "both";
        bounds: [number, number, number, number];
        geometryId: `g_${string}`;
    }
    Index

    Properties

    repeat: { u: number; v: number }

    Controls how many times the texture repeats across the surface. The u value controls horizontal repetition and v controls vertical repetition.

    offset: { u: number; v: number }

    Controls the starting position of the texture on the surface. The u value shifts the texture horizontally and v shifts vertically.

    rotation: number

    Rotation of the texture in degrees clockwise.

    For top textures this is relative to north. North is 0, east is 90.

    For side textures this is relative to the upward direction, with 0 degrees being upright.

    0

    360

    path: string

    Path to the texture image. Must be either a PNG or JPG format.

    face: "unknown" | "top" | "side"

    Face of the polygon that the texture will be applied to.

    'top' means that the texture will be applied to the upward-pointing face of the polygon.

    'side' means that the texture will be applied to every side face of the polygon.

    surface: "unknown" | "inside" | "outside" | "both"

    Surface of the polygon that the texture will be applied to.

    'inside' means that the texture will only be applied to the interior surface of the polygon.

    'outside' means that the texture will only be applied to the exterior surface of the polygon.

    'both' means that the texture will be applied to both interior and exterior surfaces of the polygon.

    bounds: [number, number, number, number]

    Coordinates of the texture's bounding box in format: [minLon, minLat, maxLon, maxLat].

    geometryId: `g_${string}`