Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SortedFeatures

take an array of features and sort by a given property name

Hierarchy

  • SortedFeatures

Index

Constructors

constructor

  • new SortedFeatures(features: any, propertyName: any): SortedFeatures

Properties

_propertyType

_propertyType: string

propertyName

propertyName: string

sortedFeatures

sortedFeatures: Array<Feature>

Methods

getFeature

  • getFeature(propertyValue: any, exactMatch?: boolean, sortedFeatures?: Array<Feature>): any
  • recursive search to find the value

    Parameters

    • propertyValue: any

      the property value to search for

    • Default value exactMatch: boolean = false
    • Optional sortedFeatures: Array<Feature>

    Returns any

    the feature matching the lookup

Generated using TypeDoc