LogoLogo
Sign upHelp CenterContactSocial
JS SDK API Reference
JS SDK API Reference
  • API Reference
  • @feltmaps/js-sdk
  • Elements
    • CircleElementCreate
    • CircleElementRead
    • CircleElementUpdate
    • Element
    • ElementChangeCallbackParams
    • ElementCreate
    • ElementGroup
    • ElementGroupChangeCallbackParams
    • ElementUpdate
    • ElementsController
    • GetElementGroupsConstraint
    • GetElementsConstraint
    • HighlighterElementCreate
    • HighlighterElementRead
    • HighlighterElementUpdate
    • ImageElementCreate
    • ImageElementRead
    • ImageElementUpdate
    • LinkElementRead
    • MarkerElementCreate
    • MarkerElementRead
    • MarkerElementUpdate
    • NoteElementCreate
    • NoteElementRead
    • NoteElementUpdate
    • PathElementCreate
    • PathElementRead
    • PathElementUpdate
    • PlaceElementCreate
    • PlaceElementRead
    • PlaceElementUpdate
    • PolygonElementCreate
    • PolygonElementRead
    • PolygonElementUpdate
    • TextElementCreate
    • TextElementRead
    • TextElementUpdate
  • Interactions
    • InteractionsController
    • MapInteractionEvent
  • Layers
    • AggregationConfig
    • AggregationMethod
    • CreateLayersFromGeoJsonParams
    • DataOnlyLayer
    • FeltTiledVectorSource
    • FilterExpression
    • FilterLogicGate
    • FilterTernary
    • Filters
    • GeoJsonDataVectorSource
    • GeoJsonFileVectorSource
    • GeoJsonUrlVectorSource
    • GeometryFilter
    • GetLayerCalculationParams
    • GetLayerCategoriesGroup
    • GetLayerCategoriesParams
    • GetLayerGroupsConstraint
    • GetLayerHistogramBin
    • GetLayerHistogramParams
    • GetLayersConstraint
    • GetRenderedFeaturesConstraint
    • Layer
    • LayerBoundaries
    • LayerChangeCallbackParams
    • LayerCommon
    • LayerFeature
    • LayerFilters
    • LayerGroup
    • LayerGroupChangeCallbackParams
    • LayerProcessingStatus
    • LayerSchema
    • LayerSchemaAttribute
    • LayerSchemaBooleanAttribute
    • LayerSchemaCommonAttribute
    • LayerSchemaDateAttribute
    • LayerSchemaDateTimeAttribute
    • LayerSchemaNumericAttribute
    • LayerSchemaTextAttribute
    • LayersController
    • LegendItem
    • LegendItemChangeCallbackParams
    • LegendItemIdentifier
    • LegendItemsConstraint
    • MultiAggregationConfig
    • RasterBand
    • RasterLayer
    • RasterLayerSource
    • RasterValue
    • UpdateLayerParams
    • ValueConfiguration
    • VectorLayer
  • Main
    • Felt
    • FeltController
    • FeltEmbedOptions
  • Misc
    • MapDetails
    • MiscController
  • Selection
    • ElementGroupNode
    • ElementNode
    • EntityNode
    • FeatureNode
    • FeatureSelection
    • LayerGroupNode
    • LayerNode
    • SelectionController
  • Shared
    • FeltBoundary
    • FeltZoom
    • GeoJsonFeature
    • GeoJsonGeometry
    • GeoJsonProperties
    • LatLng
    • LineStringGeometry
    • LngLatTuple
    • MultiLineStringGeometry
    • MultiPointGeometry
    • MultiPolygonGeometry
    • PointGeometry
    • PolygonGeometry
    • SetVisibilityRequest
    • SortConfig
    • SortDirection
  • Tools
    • CircleToolSettings
    • ConfigurableToolType
    • HighlighterToolSettings
    • InputToolSettings
    • LineToolSettings
    • MarkerToolSettings
    • NoteToolSettings
    • PinToolSettings
    • PlaceFrame
    • PlaceSymbol
    • PolygonToolSettings
    • RouteToolSettings
    • TextToolSettings
    • ToolSettingsChangeEvent
    • ToolSettingsMap
    • ToolType
    • ToolsController
  • UI
    • OnMapInteractionsOptions
    • UiController
    • UiControlsOptions
  • Viewport
    • SetViewportCenterZoomParams
    • ViewportCenterZoom
    • ViewportConstraints
    • ViewportController
    • ViewportFitBoundsParams
    • ViewportState
Powered by GitBook
On this page
  • Extended by
  • Methods
  • getLayer()
  • getLayers()
  • setLayerVisibility()
  • setLayerStyle()
  • setLayerLegendVisibility()
  • createLayersFromGeoJson()
  • updateLayer()
  • deleteLayer()
  • getLayerGroup()
  • getLayerGroups()
  • setLayerGroupVisibility()
  • setLayerGroupLegendVisibility()
  • getLegendItem()
  • getLegendItems()
  • setLegendItemVisibility()
  • getLayerFilters()
  • setLayerFilters()
  • getLayerBoundaries()
  • setLayerBoundary()
  • getRenderedFeatures()
  • getFeature()
  • getFeatures()
  • getGeoJsonFeature()
  • getCategoryData()
  • getHistogramData()
  • getAggregates()
  • getLayerSchema()
  • Events
  • onLayerChange()
  • onLayerGroupChange()
  • onLegendItemChange()
  • onLayerFiltersChange()
  • onLayerBoundariesChange()

Was this helpful?

Export as PDF
  1. Layers

LayersController

PreviousLayerSchemaTextAttributeNextLegendItem

Last updated 15 days ago

Was this helpful?


The Layers controller allows you to get information about the layers on the map, and make changes to their visibility.

Layers can be organised into groups, and their groups can also have their visibility toggled.

Extended by

Methods

getLayer()

getLayer(id: string): Promise<null | >

Get a single layer from the map by its id.

Parameters

Parameter
Type
Description

id

string

The id of the layer you want to get.

Returns

Promise<null | >

The requested layer.

Example

const layer = await felt.getLayer("layer-1");

getLayers()

Gets layers from the map, according to the constraints supplied. If no constraints are supplied, all layers will be returned.

Parameters

Parameter
Type
Description

constraint?

The constraints to apply to the layers returned from the map.

Returns

All layers on the map.

Remarks

The layers in the map, ordered by the order specified in Felt. This is not necessarily the order that they are drawn in, as Felt draws points above lines and lines above polygons, for instance.

Example

const layers = await felt.getLayers();

setLayerVisibility()

Hide or show layers with the given ids.

Parameters

Parameter
Type

visibility

Returns

Promise<void>

Example

felt.setLayerVisibility({ show: ["layer-1", "layer-2"], hide: ["layer-3"] });

setLayerStyle()

setLayerStyle(params: { id: string; style: object; }): Promise<void>

Set the style for a layer using FSL, the Felt Style Language.

Changes are only for this session, and not persisted. This is useful to make temporary changes to a layer's style, such as to highlight a particular layer or feature.

If the style you set is invalid, you will receive an error explaining the problem in the rejected promise value.

Parameters

Parameter
Type
Description

params

{ id: string; style: object; }

-

params.id

string

The id of the layer to set the style for.

params.style

object

The style to set for the layer.

Returns

Promise<void>

Example

// first get the current style
const oldStyle = (await felt.getLayer("layer-1")).style;

felt.setLayerStyle({ id: "layer-1", style: {
  ...oldStyle,
  paint: {
    ...oldStyle.paint,
    color: "red",
  },
} });

setLayerLegendVisibility()

Hide or show layers with the given ids from the legend.

Parameters

Parameter
Type

params

Returns

Promise<void>

Example

felt.setLayerLegendVisibility({ show: ["layer-1", "layer-2"], hide: ["layer-3"] });

createLayersFromGeoJson()

Adds layers to the map from file or URL sources.

Parameters

Parameter
Type

params

Returns

The layer groups that were created.

Remarks

This allows you to add temporary layers to the map that don't depend on any processing by Felt. This is useful for viewing data from external sources or remote files.

Example

const layerFromFile = await felt.createLayersFromGeoJson({
  source: {
    type: "geoJsonFile",
    file: someFile,
  },
  name: "Parcels",
});

const layerFromUrl = await felt.createLayersFromGeoJson({
  source: {
    sourceType: "geoJsonUrl",
    url: "https://example.com/parcels.geojson",
  },
  name: "Parcels",

updateLayer()

Update a layer by passing a subset of the layer's properties.

Parameters

Parameter
Type

params

Returns

Example

await felt.updateLayer({
  id: "layer-1",
  name: "My Layer",
  caption: "A description of the layer",
});

deleteLayer()

deleteLayer(id: string): Promise<void>

Delete a layer from the map by its id.

Parameters

Parameter
Type

id

string

Returns

Promise<void>

Remarks

This only works for layers created via the SDK createLayersFromGeoJson method, not layers added via the Felt UI.

Example

await felt.deleteLayer("layer-1");

getLayerGroup()

Get a layer group from the map by its id.

Parameters

Parameter
Type

id

string

Returns

The requested layer group.

Example

const layerGroup = await felt.getLayerGroup("layer-group-1");

getLayerGroups()

Gets layer groups from the map, according to the constraints supplied. If no constraints are supplied, all layer groups will be returned in rendering order.

Parameters

Parameter
Type
Description

constraint?

The constraints to apply to the layer groups returned from the map.

Returns

The requested layer groups.

Example

const layerGroups = await felt.getLayerGroups({ ids: ["layer-group-1", "layer-group-2"] });

setLayerGroupVisibility()

Hide or show layer groups with the given ids.

Parameters

Parameter
Type

visibility

Returns

Promise<void>

Example

felt.setLayerGroupVisibility({ show: ["layer-group-1", "layer-group-2"], hide: ["layer-group-3"] });

setLayerGroupLegendVisibility()

Hide or show layer groups with the given ids from the legend.

Parameters

Parameter
Type

params

Returns

Promise<void>

Example

felt.setLayerGroupLegendVisibility({ show: ["layer-1", "layer-2"], hide: ["layer-3"] });

getLegendItem()

Allows you to get the state of a single legend item.

Parameters

Parameter
Type

id

Returns

Example

const legendItem = await felt.getLegendItem({
  id: "legend-item-1",
  layerId: "layer-1",
})

getLegendItems()

Allows you to obtain the state of several legend items, by passing in constraints describing which legend items you want.

If you do not pass any constraints, you will receive all legend items.

Parameters

Parameter
Type

constraint?

Returns

Example

const legendItems = await felt.getLegendItems({layerId: "layer-1"});

setLegendItemVisibility()

Hide or show legend items with the given identifiers.

Parameters

Parameter
Type

visibility

visibility.show?

visibility.hide?

Returns

Promise<void>

Example

felt.setLegendItemVisibility({
  show: [{layerId: "layer-group-1", id: "item-1-0"}],
  hide: [{layerId: "layer-group-2", id: "item-2-0"}],
})

getLayerFilters()

Get the filters for a layer.

Parameters

Parameter
Type

layerId

string

Returns

Remarks

The return type gives you the filters split up into the various sources that make up the overall filters for a layer.

Example

const filters = await felt.getLayerFilters("layer-1");
console.log(filters.combined, filters.style, filters.ephemeral, filters.components);

setLayerFilters()

Sets the ephemeral filters for a layer.

Parameters

Parameter
Type
Description

params

-

params.layerId

string

The layer that you want to set the filters for.

params.filters

The filters to set for the layer. This will replace any ephemeral filters that are currently set for the layer.

params.note?

string

A note to display on the layer legend when this filter is applied. When the note is shown, a reset button will also be shown, allowing the user to clear the filter.

Returns

Promise<void>

Example

await felt.setLayerFilters({
  layerId: "layer-1",
  filters: ["AREA", "gt", 30_000],
});

getLayerBoundaries()

Get the spatial boundaries that are filtering a layer.

Parameters

Parameter
Type

layerId

string

Returns

Remarks

The return type gives you the boundaries split up into the various sources that make up the overall boundary for a layer.

The combined boundary is the intersection of the other sources of boundaries.

Example

const boundaries = await felt.getLayerBoundaries("layer-1");

console.log(boundaries?.combined);
console.log(boundaries?.spatialFilters);
console.log(boundaries?.ephemeral);

setLayerBoundary()

Parameters

Parameter
Type
Description

params

-

params.layerIds

string[]

The ids of the layers to set the boundary for.

params.boundary

The boundary to set for the layer. Passing null clears the ephemeral boundary for the layer.

Returns

Promise<void>

Example

await felt.setLayerBoundary({
  layerIds: ["layer-1", "layer-2"],
  boundary: { type: "MultiPolygon", coordinates: [[[100, 0], [101, 0], [101, 1], [100, 1], [100, 0]]] }
});

getRenderedFeatures()

Get the features that are currently rendered on the map in the viewport.

Note that this is explicitly about the features that are rendered, which isn't necessarily a complete list of all the features in the viewport. This is because of the way features are tiled: at low zoom levels or high feature densities, many features are omitted from what is rendered on the screen.

Parameters

Parameter
Type
Description

params?

The constraints to apply to the features returned from the map.

Returns

Example

const features = await felt.getRenderedFeatures();

getFeature()

Get a feature from the map by its ID and layer ID.

You may want to use this when you don't need the geometry of a feature, but you know the ID of the feature you need.

Parameters

Parameter
Type

params

{ id: string | number; layerId: string; }

params.id

string | number

params.layerId

string

Returns

Example

const feature = await felt.getFeature({ layerId: "layer-1", id: 123 });

getFeatures()

Get a list of layer features.

Parameters

Parameter
Type
Description

params

-

params.layerId

string

The ID of the layer to get features from.

params.filters?

Filters to be applied. These filters will merge with layer's own filters.

params.sorting?

Attribute to sort by.

params.boundary?

The spatial boundary to be applied.

params.search?

string

Search term to search by. Search is case-insensitive and looks for matches across all feature properties.

params.pagination?

null | string

Pagination token. It comes from either the previousPage or nextPage properties of the previous response.

Returns

The response is an object which contains:

  • count: the total number of features that match the query.

  • previousPage & nextPage: The tokens to pass in the pagination param to navigate between pages.

Remarks

This list is paginated in sets of 20 features for each page. In order to paginate between pages, the response includes previousPage and nextPage that are tokens that should be sent in the pagination params for requesting sibling pages.

Text search is case-insensitive and looks for matches across all feature properties.

Example

const page1Response = await felt.getFeatures({
  layerId: "layer-1",
  search: "abc123",
  pagination: undefined,
});

// Note that the search term here matches the one for the first page.
if (page1Response.nextPage) {
  const page2Response = await felt.getFeatures({
    layerId: "layer-1",
    search: "abc123",
    pagination: page1Response.nextPage,
  });
}

getGeoJsonFeature()

Get a feature in GeoJSON format from the map by its ID and layer ID.

The response is a GeoJSON Feature object with the complete geometry of the feature. Note that for some very large geometries, the response may take a long time to return, and may return a very large object.

Parameters

Parameter
Type

params

{ id: string | number; layerId: string; }

params.id

string | number

params.layerId

string

Returns

Example

const feature = await felt.getGeoJsonFeature({ layerId: "layer-1", id: 123 });

getCategoryData()

Gets values from a layer grouped by a given attribute.

Parameters

Parameter
Type

params

Returns

Remarks

Groups features in your layer by unique values in the specified attribute and calculates a value for each group. By default, this value is the count of features in each group.

You can apply filters in two ways:

  1. At the top level (using boundary and filters), which affects both what categories are included and how values are calculated

  2. In the values configuration, which only affects the values but keeps all categories

This two-level filtering is particularly useful when you want to compare subsets of data while maintaining consistent categories. For example, you might want to show the distribution of all building types in a city, but only count buildings built after 2000 in each category.

Example

// Basic grouping: Count of buildings by type
const buildingsByType = await felt.getCategoryData({
  layerId: "buildings",
  attribute: "type"
});

// Filtered grouping: Only count buildings in downtown
const downtownBuildingsByType = await felt.getCategoryData({
  layerId: "buildings",
  attribute: "type",
  boundary: [-122.43, 47.60, -122.33, 47.62]  // downtown boundary
});

// Advanced: Show all building types, but only sum floor area of recent buildings
const recentBuildingAreaByType = await felt.getCategoryData({
  layerId: "buildings",
  attribute: "type",
  values: {
    filters: ["year_built", "gte", 2000],
    aggregation: {
      method: "sum",
      attribute: "floor_area"
    }
  }
});

// Compare residential density across neighborhoods while only counting recent buildings
const newBuildingDensityByNeighborhood = await felt.getCategoryData({
  layerId: "buildings",
  attribute: "neighborhood",
  values: {
    filters: ["year_built", "gte", 2000],
    aggregation: {
      method: "avg",
      attribute: "units_per_acre"
    }
  }
});

getHistogramData()

Gets a histogram of values from a layer for a given attribute.

Parameters

Parameter
Type

params

Returns

Remarks

Creates bins (ranges) for numeric data and counts how many features fall into each bin, or returns aggregated values for each bin.

You can control how the bins are created using the steps parameter, choosing from several methods like equal intervals, quantiles, or natural breaks (Jenks), or passing in the step values directly if you know how you want to bin the data.

Like getCategoryData, you can apply filters in two ways:

  1. At the top level (using boundary and filters), which affects both how the bins are calculated and what features are counted in each bin

  2. In the values configuration, which only affects what gets counted but keeps the bin ranges the same

This is particularly useful when you want to compare distributions while keeping consistent bin ranges. For example, you might want to compare the distribution of building heights in different years while using the same height ranges.

Example

// Basic histogram: Building heights in 5 natural break bins
const buildingHeights = await felt.getHistogramData({
  layerId: "buildings",
  attribute: "height",
  steps: { type: "jenks", count: 5 }
});

// Compare old vs new buildings using the same height ranges
const oldBuildingHeights = await felt.getHistogramData({
  layerId: "buildings",
  attribute: "height",
  steps: [0, 20, 50, 100, 200, 500],
  values: {
    filters: ["year_built", "lt", 1950]
  }
});

const newBuildingHeights = await felt.getHistogramData({
  layerId: "buildings",
  attribute: "height",
  steps: [0, 20, 50, 100, 200, 500],  // Same ranges as above
  values: {
    filters: ["year_built", "gte", 1950]
  }
});

getAggregates()

Calculates a single aggregate value for a layer based on the provided configuration.

Type Parameters

Type Parameter

T extends "avg" | "max" | "min" | "sum" | "median" | "count"

Parameters

Parameter
Type

params

Returns

Promise<Record<T, null | number>>

Remarks

Performs statistical calculations on your data, like counting features or computing averages, sums, etc. You can focus your calculation on specific areas or subsets of your data using boundaries and filters.

When no aggregation is specified, it counts features. When an aggregation is provided, it performs that calculation (average, sum, etc.) on the specified attribute.

Example

// Count all residential buildings
const residentialCount = await felt.getAggregates({
  layerId: "buildings",
  filters: ["type", "eq", "residential"]
});

// Calculate average home value in a specific neighborhood
const avgHomeValue = await felt.getAggregates({
  layerId: "buildings",
  boundary: [-122.43, 47.60, -122.33, 47.62],  // neighborhood boundary
  aggregation: {
    method: "avg",
    attribute: "assessed_value"
  }
});

// Find the maximum building height for buildings built after 2000
const maxNewBuildingHeight = await felt.getAggregates({
  layerId: "buildings",
  filters: ["year_built", "gte", 2000],
  aggregation: {
    method: "max",
    attribute: "height"
  }
});

getLayerSchema()

Get the schema for a layer.

Parameters

Parameter
Type

layerId

string

Returns

Remarks

The schema describes the structure of the data in a layer, including the attributes that are available on the features in the layer.

This can be useful to build generic UIs that need to know the structure of the data in a layer, such as a dropdown to choose an attribute.

Example

const schema = await felt.getLayerSchema("layer-1");
const attributeIds = schema.attributes.map((attr) => attr.id);

Events

onLayerChange()

Adds a listener for when a layer changes.

Parameters

Parameter
Type
Description

args

-

args.options

{ id: string; }

-

args.options.id

string

The id of the layer to listen for changes to.

args.handler

The handler that is called when the layer changes.

Returns

VoidFunction

A function to unsubscribe from the listener

Example

const unsubscribe = felt.onLayerChange({
  options: { id: "layer-1" },
  handler: ({layer}) => console.log(layer.bounds),
});

// later on...
unsubscribe();

onLayerGroupChange()

Adds a listener for when a layer group changes.

Parameters

Parameter
Type

args

args.options

{ id: string; }

args.options.id

string

args.handler

Returns

VoidFunction

A function to unsubscribe from the listener

Example

const unsubscribe = felt.onLayerGroupChange({
  options: { id: "layer-group-1" },
  handler: ({layerGroup}) => console.log(layerGroup.id),
});

// later on...
unsubscribe();

onLegendItemChange()

Adds a listener for when a legend item changes.

Parameters

Parameter
Type

args

args.options

args.handler

Returns

VoidFunction

A function to unsubscribe from the listener

Example

const unsubscribe = felt.onLegendItemChange({
  options: { layerId: "layer-1", id: "item-1-0" },
  handler: ({legendItem}) => console.log(legendItem.visible),
});

// later on...
unsubscribe();

onLayerFiltersChange()

Adds a listener for when a layer's filters change.

Parameters

Parameter
Type

params

params.options

{ layerId: string; }

params.options.layerId

string

params.handler

Returns

VoidFunction

A function to unsubscribe from the listener

Remarks

This event fires whenever any type of filter changes on the layer, including ephemeral filters set via the SDK, style-based filters, or filters set through the Felt UI via Components.

Example

const unsubscribe = felt.onLayerFiltersChange({
  options: { layerId: "layer-1" },
  handler: ({combined, ephemeral, style, components}) => {
    console.log("Layer filters updated:", {
      combined,  // All filters combined
      ephemeral, // Filters set via SDK
      style,     // Filters from layer style
      components // Filters from UI components
    });
  },
});

// later on...
unsubscribe();

onLayerBoundariesChange()

Adds a listener for when a layer's spatial boundaries change.

Parameters

Parameter
Type
Description

params

-

params.options

{ layerId: string; }

-

params.options.layerId

string

The id of the layer to listen for boundary changes on.

params.handler

A function that is called when the boundaries change.

Returns

VoidFunction

A function to unsubscribe from the listener

Remarks

This event fires whenever any type of spatial boundary changes on the layer, including ephemeral boundaries set via the SDK or boundaries set through the Felt UI via Spatial filter components.

Example

const unsubscribe = felt.onLayerBoundariesChange({
  options: { layerId: "layer-1" },
  handler: ({combined, ephemeral, spatialFilters}) => {
    console.log("Layer boundaries updated:", {
      combined,  // All boundaries combined
      ephemeral, // Boundaries set via SDK
      spatialFilters // Boundaries set via UI
    });
  },
});

// later on...
unsubscribe();

getLayers(constraint?: ): Promise<(null | )[]>

Promise<(null | )[]>

setLayerVisibility(visibility: ): Promise<void>

See the for details on how to read and write styles.

setLayerLegendVisibility(params: ): Promise<void>

createLayersFromGeoJson(params: ): Promise<null | { layerGroup: ; layers: []; }>

Promise<null | { layerGroup: ; layers: []; }>

updateLayer(params: ): Promise<>

Note that not all properties can be updated, so check the type to see which properties can be updated.

Promise<>

getLayerGroup(id: string): Promise<null | >

Promise<null | >

getLayerGroups(constraint?: ): Promise<(null | )[]>

Promise<(null | )[]>

setLayerGroupVisibility(visibility: ): Promise<void>

setLayerGroupLegendVisibility(params: ): Promise<void>

getLegendItem(id: ): Promise<null | >

Promise<null | >

getLegendItems(constraint?: ): Promise<(null | )[]>

Promise<(null | )[]>

setLegendItemVisibility(visibility: { show: []; hide: []; }): Promise<void>

{ show: []; hide: []; }

[]

[]

getLayerFilters(layerId: string): Promise<null | >

Promise<null | >

setLayerFilters(params: { layerId: string; filters: ; note: string; }): Promise<void>

{ layerId: string; filters: ; note: string; }

getLayerBoundaries(layerId: string): Promise<null | >

Promise<null | >

setLayerBoundary(params: { layerIds: string[]; boundary: null | ; }): Promise<void>

Set the boundary for one or more layers.

{ layerIds: string[]; boundary: null | ; }

null |

getRenderedFeatures(params?: ): Promise<[]>

Promise<[]>

getFeature(params: { id: string | number; layerId: string; }): Promise<null | >

The response is a object, which does not include the geometry of the feature.

Promise<null | >

getFeatures(params: { layerId: string; filters: ; sorting: ; boundary: ; search: string; pagination: null | string; }): Promise<{ features: []; count: number; previousPage: null | string; nextPage: null | string; }>

{ layerId: string; filters: ; sorting: ; boundary: ; search: string; pagination: null | string; }

Promise<{ features: []; count: number; previousPage: null | string; nextPage: null | string; }>

features: list of objects, which does not include the geometry of the feature but it does include its bounding box.

getGeoJsonFeature(params: { id: string | number; layerId: string; }): Promise<null | >

Promise<null | >

getCategoryData(params: ): Promise<[]>

Promise<[]>

getHistogramData(params: ): Promise<[]>

Promise<[]>

getAggregates<T>(params: <T>): Promise<Record<T, null | number>>

<T>

getLayerSchema(layerId: string): Promise<>

Promise<>

onLayerChange(args: { options: { id: string; }; handler: (change: ) => void; }): VoidFunction

{ options: { id: string; }; handler: (change: ) => void; }

(change: ) => void

onLayerGroupChange(args: { options: { id: string; }; handler: (change: ) => void; }): VoidFunction

{ options: { id: string; }; handler: (change: ) => void; }

(change: ) => void

onLegendItemChange(args: { options: ; handler: (change: ) => void; }): VoidFunction

{ options: ; handler: (change: ) => void; }

(change: ) => void

onLayerFiltersChange(params: { options: { layerId: string; }; handler: (change: ) => void; }): VoidFunction

{ options: { layerId: string; }; handler: (change: ) => void; }

(change: ) => void

onLayerBoundariesChange(params: { options: { layerId: string; }; handler: (boundaries: null | ) => void; }): VoidFunction

{ options: { layerId: string; }; handler: (boundaries: null | ) => void; }

(boundaries: null | ) => void

FeltController
Layer
Layer
GetLayersConstraint
Layer
Layer
SetVisibilityRequest
FSL documentation
SetVisibilityRequest
CreateLayersFromGeoJsonParams
LayerGroup
Layer
LayerGroup
Layer
UpdateLayerParams
Layer
UpdateLayerParams
Layer
LayerGroup
LayerGroup
GetLayerGroupsConstraint
LayerGroup
LayerGroup
SetVisibilityRequest
SetVisibilityRequest
LegendItemIdentifier
LegendItem
LegendItem
LegendItemsConstraint
LegendItem
LegendItem
LegendItemIdentifier
LegendItemIdentifier
LayerFilters
LayerFilters
Filters
LayerBoundaries
LayerBoundaries
GeometryFilter
GetRenderedFeaturesConstraint
LayerFeature
LayerFeature
LayerFeature
LayerFeature
LayerFeature
Filters
SortConfig
GeometryFilter
LayerFeature
LayerFeature
LayerFeature
GeoJsonFeature
GeoJsonFeature
GetLayerCategoriesParams
GetLayerCategoriesGroup
GetLayerCategoriesGroup
GetLayerHistogramParams
GetLayerHistogramBin
GetLayerHistogramBin
GetLayerCalculationParams
LayerSchema
LayerSchema
LayerChangeCallbackParams
LayerGroupChangeCallbackParams
LegendItemIdentifier
LegendItemChangeCallbackParams
LayerFilters
LayerBoundaries
GetLayersConstraint
SetVisibilityRequest
SetVisibilityRequest
CreateLayersFromGeoJsonParams
UpdateLayerParams
GetLayerGroupsConstraint
SetVisibilityRequest
SetVisibilityRequest
LegendItemIdentifier
LegendItemsConstraint
LegendItemIdentifier
LegendItemIdentifier
LegendItemIdentifier
LegendItemIdentifier
Filters
Filters
GeometryFilter
GeometryFilter
GetRenderedFeaturesConstraint
Filters
SortConfig
GeometryFilter
Filters
SortConfig
GeometryFilter
GetLayerCategoriesParams
GetLayerHistogramParams
GetLayerCalculationParams
LayerChangeCallbackParams
LayerChangeCallbackParams
LayerGroupChangeCallbackParams
LayerGroupChangeCallbackParams
LegendItemIdentifier
LegendItemChangeCallbackParams
LegendItemIdentifier
LegendItemChangeCallbackParams
LayerFilters
LayerFilters
LayerBoundaries
LayerBoundaries
`ephemeral`