Home Reference Source
import {QueryVectorSource} from 'guide4you/src/sources/QueryVectorSource.js'
public class | source

QueryVectorSource

Extends:

ol/source/Vector~VectorSourceSourceServerVector → QueryVectorSource

A source for a VectorLayer which address is controlled by the urlapi and which is not shown in the LayerSelector

Constructor Summary

Public Constructor
public

Member Summary

Private Members
private
private

Method Summary

Public Methods
public

addFeatures(features: *)

public
public

setQueryValues(values: string[])

Inherited Summary

From class SourceServerVector
public
public

format_: *

public
public
protected
private

indicates if the source needs to be emptied

private
private
private
private
private

urlProjection_: module:ol/proj~ProjectionLike

public

addProxyToHrefTags(text: HTMLElement): HTMLElement

makes all urls in href-tags inside of a xmlDocument use the proxy address.

public
public

loader(extent: module:ol/extent~Extent, resolution: number, projection: module:ol/proj~Projection)

public

setRefresh(refresh: number)

This sets the refresh rate.

public

setUrlTemplate(urlTemplate: URL)

Public Constructors

public constructor(options: QuerySourceOptions) source

Override:

SourceServerVector#constructor

Params:

NameTypeAttributeDescription
options QuerySourceOptions

Private Members

private changedQueryValuesCount_: number source

private queryValues_: string[] source

Public Methods

public addFeatures(features: *) source

Params:

NameTypeAttributeDescription
features *

public getQueryValues(): string[] source

Return:

string[]

public setQueryValues(values: string[]) source

Params:

NameTypeAttributeDescription
values string[]