In the KML Specification, a Ground Overlay is an entity that contains raster data in the form of an image reference and bounding area.

When a KML file is loaded which contains a ground overlay element, a "KMLGroundOverlay" event will be emitted on KMLCodec. To add a layer for a ground overlay element to the map, you need to register a callback on KMLCodec for this event. In this callback you can create a layer for the ground overlay by using createGroundOverlayLayer.

Create a RasterTileSetLayer from a KMLGroundOverlayFeature

    createGroundOverlayLayer(map, groundOverlay).then(layer => {
// Add the layer to the map
map.layerTree.addChild(layer);
});

2020.1

Hierarchy (View Summary)

Constructors

Accessors

Methods

Constructors

Accessors

  • get id(): FeatureId

    The unique identifier of the feature.

    This ID must uniquely identify the feature within the context of a model, i.e., within a FeatureModel.

    Returns FeatureId

  • set id(value: FeatureId): void

    Parameters

    Returns void

  • get properties(): TProperties

    The properties that were passed to the constructor.

    Returns TProperties

  • get shape(): TShape

    The shape of the feature

    Returns TShape

  • set shape(shape: TShape): void

    Parameters

    Returns void

Methods