Constructor options for the KMLCodec.

2020.1

interface KMLCodecConstructorOptions {
    origin?: string;
    withStyle?: boolean;
}

Properties

Properties

origin?: string

Defines the "Base URL" to resolve links from. If this value is defined, then sub-links are resolved from the target URL. Otherwise, links are resolved from the current window's URL.

withStyle?: boolean

Defines whether to decode styles within the codec (default = true). If styles are not decoded, then every decoded feature will be forced to use the default KML styles.