Options
All
  • Public
  • Public/Protected
  • All
Menu

Module ria/util/kml/KMLUtil

Overview

Functions

createGroundOverlayLayer

  • Creates a layer to visualize a KMLGroundOverlayFeature.

     export function createKMLLayer(groundOverlay: KMLGroundOverlayFeature, map: Map) {
        if ( !groundOverlay.shape?.bounds ||
            !groundOverlay.properties.icon?.href) {
            return;
        }
    
        createGroundOverlayLayer(map, groundOverlay).then(layer => {
            // Add the layer to the map
            map.layerTree.addChild(layer);
        });
    

    By default, this function will use the KMLFeatureProperties.name as the layer's label and KMLFeatureProperties.visibility as the layer's visible flag. You can override this default behavior by specifying a label or visible flag in the layerOptions.

    since

    2021.0

    Parameters

    Returns Promise<Layer>

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method