LuciadRIA (2026.0.07)
    Preparing search index...

    A high-level geographic feature rendering canvas.

    interface GeoCanvas {
        drawIcon(shape: Shape, iconStyle: IconStyle): void;
        drawIcon3D(shape: Shape, iconStyle: Icon3DStyle): void;
        drawPanorama(
            location: Point,
            style?: PanoramaStyle,
            context?: PanoramaContext,
        ): void;
        drawShape(shape: Shape, style: ShapeStyle): void;
        drawText(shape: Shape, text: string, style: TextStyle): void;
    }

    Methods

    • Draws an icon at the location specified by the shape parameter using the given styling parameters.

      Parameters

      • shape: Shape

        the shape to draw.

      • iconStyle: IconStyle

        The object containing styling properties

      Returns void

    • Draws a 3D icon at the location specified by the shape parameter using the given styling parameters.

      Parameters

      • shape: Shape

        The shape to draw.

      • iconStyle: Icon3DStyle

        The object containing styling properties.

      Returns void

    • Draws a panoramic image at the specified location, using the specified rotation.

      LuciadRIA identifies a single panoramic tileset using the context object. If any of the properties of this object change, LuciadRIA will load new tiles for that panoramic.

      Parameters

      • location: Point

        The sensor location of the panoramic image, ie. the center of the image.

      • Optionalstyle: PanoramaStyle

        Styling options for this panoramic image. Defaults to a style with opacity 1.

      • Optionalcontext: PanoramaContext

        An object that provides context to the drawPanoramic calls. This context object is passed to PanoramaModel.getPanoramicImage. You decide what this object looks like, and how you use it in PanoramaModel.getPanoramicImageURL. The context object uniquely identifies a single panoramic image tileset. It is used to differentiate between different drawPanorama calls. The keys of this object should be strings, and the values strings or numbers. Complex object structures (nested objects) are not allowed. By default, the context is null.

        Example usages of the context:

        • Identify the panoramic image tileset, for example,
             const context = { id: feature.id };
          
        • Identify the sub-shape of the feature (e.g. the index of a point in a point list).
        • Request a different image, for the same feature (e.g. a panoramic image at a different timestamp, or a different style)

      Returns void

      2020.1

    • Draws the given shape using the provided styling parameters.

      To draw a shape of type POINT, please use drawIcon or drawIcon3D Note: A Point shape passed to this method will always be drawn as a blue dot, disregarding the provided style.

      Parameters

      • shape: Shape

        The shape to draw. Supported shape types are: POLYLINE, POLYGON, CIRCLE_BY_3_POINTS, CIRCLE_BY_CENTER_POINT, ELLIPSE, ARC, CIRCULAR_ARC_BY_3_POINTS, CIRCULAR_ARC_BY_BULGE, CIRCULAR_ARC_BY_CENTER_POINT, ARC_BAND, SECTOR, COMPLEX_POLYGON, BEZIER_CURVE, SHAPE_LIST, BOUNDS or ORIENTED_BOX.

      • style: ShapeStyle

        an object containing styling properties

      Returns void

    • Draws the given text string at the location specified by the shape parameter.

      Parameters

      • shape: Shape

        the focus point of the shape will be used to position the text

      • text: string

        the text string to draw

      • style: TextStyle

        an object containing styling properties for the text.

      Returns void