Class: GalleryWFSDataAdapter

.data.GalleryWFSDataAdapter()

Class representing a WFS adapter for the gallery. Provide the required interface methods.

Constructor

new GalleryWFSDataAdapter()

Creates the WFS adapter.
Source:

Methods

init(dataID, layerConfig)

Init the data service.
Parameters:
Name Type Description
dataID string Data identifier, i.e., in catalog.
layerConfig Object Layer configuration - service part of the GalleryConfigLoader.
Source:
Returns:
Promise

requestData(filter, query)

Request WFS data.
Parameters:
Name Type Description
filter Object Abstract filter object.
query Object Custom query parameters for the request, i.e., SORTBY, COUNT, STARTINDEX, etc. Are mapped to the service query parameters.
Source:
Returns:
Promise with JSON response of WFS service.

requestItemsQuantity(filter)

Request only the number of items for a WFS request.
Parameters:
Name Type Description
filter Object Abstract filter object.
Source:
Returns:
Total items.