A high-level geographic feature rendering canvas.

interface GeoCanvas {
    drawIcon(shape, iconStyle): void;
    drawIcon3D(shape, iconStyle): void;
    drawPanorama(location, style?, context?): void;
    drawShape(shape, style): void;
    drawText(shape, text, style): void;
}

Methods

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

    Parameters

    • shape: Shape

      the shape to draw.

    • iconStyle: IconStyle

      an object containing styling properties

    Returns void

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

    Parameters

    • shape: Shape

      the shape to draw

    • iconStyle: Icon3DStyle

      an 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.

    • Optional style: PanoramaStyle

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

    • Optional context: 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:

      • Identify the panoramic image tileset, for example, 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

    Since

    2020.1

  • Draws the given shape using the given styling parameters.

    Parameters

    • shape: Shape

      the shape to draw. This shape can be of type: 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, SHAPE_LIST, BOUNDS or ORIENTED_BOX

      To draw a shape of type POINT please use drawIcon or drawIcon3D

      Note: a Point shape passed to this method will be always drawn as a blue dot.

    • 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