geopf-extensions-openlayers
    Preparing search index...

    Class SourceWFS

    Hierarchy

    • VectorSource
      • SourceWFS
    Index
    • Parameters

      • options: {
            apiKey?: string;
            configuration?: any;
            description?: string;
            layer: string;
            legends?: any[];
            maxFeatures?: number;
            metadata?: any[];
            olParams?: any;
            producer?: string;
            quicklookUrl?: string;
            ssl?: boolean;
            thumbnail?: string;
            title?: string;
        }

        options for function call.

        • OptionalapiKey?: string

          Access key to Geoportal platform

        • Optionalconfiguration?: any

          configuration (cf. example)

        • Optionaldescription?: string

          description of the layer

        • layer: string

          Layer name (e.g. "")

        • Optionallegends?: any[]

          Legends objects associated to the layer

        • OptionalmaxFeatures?: number

          maximum features (max: 5000)

        • Optionalmetadata?: any[]

          Metadata objects associated to the layer

        • OptionalolParams?: any

          other options for ol.source.Vector function (see ol.source.Vector)

        • Optionalproducer?: string

          producer of the layer

        • OptionalquicklookUrl?: string

          quicklookUrl of the layer

        • Optionalssl?: boolean

          if set true, enforce protocol https (only for nodejs)

        • Optionalthumbnail?: string

          thumbnail of the layer

        • Optionaltitle?: string

          title of the layer

      Returns SourceWFS

      var sourceWFS = new ol.source.GeoportalWFS({
      layer: "",
      maxFeatures: 500,
      olParams: {}
      });
    _description: any
    _legends: any
    _metadata: any
    _originators: any
    _producer: any
    _quicklookUrl: any
    _thumbnail: any
    _title: any
    canRotate: boolean

    Rotation can be requested from the source.

    disposed: boolean

    The object has already been disposed.

    loading: number | boolean

    This source is currently loading data. Sources that defer loading to the map's tile queue never set this to a truthy value.

    name: string
    on: VectorSourceOnSignature<EventsKey, Feature<Geometry, { [x: string]: any }>>
    once: VectorSourceOnSignature<
        EventsKey,
        Feature<Geometry, { [x: string]: any }>,
    >
    projection: Projection | null
    service: string
    un: VectorSourceOnSignature<void>
    viewRejector: ((arg0: Error) => void) | null
    viewResolver: ((arg0: ViewOptions) => void) | null
    • Parameters

      • key: string

        Key name.

      • listener: Listener

        Listener.

      Returns void

    • Parameters

      • type: string

        Type.

      • listener: Listener

        Listener.

      Returns void

    • Add a single feature to the source. If you want to add a batch of features at once, call module:ol/source/Vector~VectorSource#addFeatures #addFeatures() instead. A feature will not be added to the source if feature with the same id is already there. The reason for this behavior is to avoid feature duplication when using bbox or tile loading strategies. Note: this also applies if a module:ol/Collection~Collection is used for features, meaning that if a feature with a duplicate id is added in the collection, it will be removed from it right away.

      Parameters

      • feature: Feature

        Feature to add.

      Returns void

    • Protected

      Add a feature without firing a change event.

      Parameters

      • feature: Feature

        Feature.

      Returns void

    • Add a batch of features to the source.

      Parameters

      • features: Feature<Geometry, { [x: string]: any }>[]

        Features to add.

      Returns void

    • Protected

      Add features without firing a change event.

      Parameters

      • features: Feature<Geometry, { [x: string]: any }>[]

        Features.

      Returns void

    • Protected

      Apply any properties from another object without triggering events.

      Parameters

      • source: BaseObject

        The source object.

      Returns void

    • Increases the revision counter and dispatches a 'change' event.

      Returns void

    • Remove all features from the source.

      Parameters

      • Optionalfast: boolean

        Skip dispatching of module:ol/source/Vector.VectorSourceEvent#event:removefeature events.

      Returns void

    • Dispatches an event and calls all listeners listening for events of this type. The event parameter can either be a string or an Object with a type property.

      Parameters

      • event: string | BaseEvent

        Event object.

      Returns boolean | undefined

      false if anyone called preventDefault on the event object or if any of the listeners returned false.

    • Clean up.

      Returns void

    • Protected

      Extension point for disposable objects.

      Returns void

    • Iterate through all features on the source, calling the provided callback with each one. If the callback returns any "truthy" value, iteration will stop and the function will return the same value. Note: this function only iterate through the feature that have a defined geometry.

      Type Parameters

      • T

      Parameters

      • callback: (arg0: Feature) => T

        Called with each feature on the source. Return a truthy value to stop iteration.

      Returns T | undefined

      The return value from the last call to the callback.

    • Iterate through all features whose geometries contain the provided coordinate, calling the callback with each feature. If the callback returns a "truthy" value, iteration will stop and the function will return the same value.

      For module:ol/render/Feature~RenderFeature features, the callback will be called for all features.

      Type Parameters

      • T

      Parameters

      • coordinate: Coordinate

        Coordinate.

      • callback: (arg0: Feature) => T

        Called with each feature whose goemetry contains the provided coordinate.

      Returns T | undefined

      The return value from the last call to the callback.

    • Iterate through all features whose bounding box intersects the provided extent (note that the feature's geometry may not intersect the extent), calling the callback with each feature. If the callback returns a "truthy" value, iteration will stop and the function will return the same value.

      If you are interested in features whose geometry intersects an extent, call the module:ol/source/Vector~VectorSource#forEachFeatureIntersectingExtent #forEachFeatureIntersectingExtent() method instead.

      When useSpatialIndex is set to false, this method will loop through all features, equivalent to module:ol/source/Vector~VectorSource#forEachFeature #forEachFeature().

      Type Parameters

      • T

      Parameters

      • extent: Extent

        Extent.

      • callback: (arg0: Feature) => T

        Called with each feature whose bounding box intersects the provided extent.

      Returns T | undefined

      The return value from the last call to the callback.

    • Iterate through all features whose geometry intersects the provided extent, calling the callback with each feature. If the callback returns a "truthy" value, iteration will stop and the function will return the same value.

      If you only want to test for bounding box intersection, call the module:ol/source/Vector~VectorSource#forEachFeatureInExtent #forEachFeatureInExtent() method instead.

      Type Parameters

      • T

      Parameters

      • extent: Extent

        Extent.

      • callback: (arg0: Feature) => T

        Called with each feature whose geometry intersects the provided extent.

      Returns T | undefined

      The return value from the last call to the callback.

    • Gets a value.

      Parameters

      • key: string

        Key name.

      Returns any

      Value.

    • Get the attribution function for the source.

      Returns Attribution | null

      Attribution function.

    • Returns boolean

      Attributions are collapsible.

    • Get the closest feature to the provided coordinate.

      This method is not available when the source is configured with useSpatialIndex set to false and the features in this source are of type module:ol/Feature~Feature.

      Parameters

      • coordinate: Coordinate

        Coordinate.

      • Optionalfilter: (arg0: Feature) => boolean

        Feature filter function. The filter function will receive one argument, the module:ol/Feature~Feature feature and it should return a boolean value. By default, no filtering is made.

      Returns Feature<Geometry, { [x: string]: any }> | null

      Closest feature (or null if none found).

    • Get the extent of the features currently in the source.

      This will return null when the source is configured with useSpatialIndex set to false.

      Parameters

      • Optionalextent: Extent

        Destination extent. If provided, no new extent will be created. Instead, that extent's coordinates will be overwritten.

      Returns Extent | null

      Extent.

    • Get a feature by its identifier (the value returned by feature.getId()). When RenderFeatures are used, getFeatureById() can return an array of RenderFeatures. This allows for handling of GeometryCollection geometries, where format readers create one RenderFeature per GeometryCollection member. Note that the index treats string and numeric identifiers as the same. So source.getFeatureById(2) will return a feature with id '2' or 2.

      Parameters

      • id: string | number

        Feature identifier.

      Returns Feature<Geometry, { [x: string]: any }> | null

      The feature (or null if not found).

    • Get a feature by its internal unique identifier (using getUid).

      Parameters

      • uid: string

        Feature identifier.

      Returns Feature<Geometry, { [x: string]: any }> | null

      The feature (or null if not found).

    • Get a snapshot of the features currently on the source in random order. The returned array is a copy, the features are references to the features in the source.

      Returns Feature<Geometry, { [x: string]: any }>[]

      Features.

    • Get all features whose geometry intersects the provided coordinate.

      Parameters

      • coordinate: Coordinate

        Coordinate.

      Returns Feature<Geometry, { [x: string]: any }>[]

      Features.

    • Get the features collection associated with this source. Will be null unless the source was configured with useSpatialIndex set to false, or with a module:ol/Collection~Collection as features.

      Returns Collection<Feature<Geometry, { [x: string]: any }>> | null

      The collection of features.

    • Get all features whose bounding box intersects the provided extent. Note that this returns an array of all features intersecting the given extent in random order (so it may include features whose geometries do not intersect the extent).

      When useSpatialIndex is set to false, this method will return all features.

      Parameters

      • extent: Extent

        Extent.

      • Optionalprojection: Projection

        Include features where extent exceeds the x-axis bounds of projection and wraps around the world.

      Returns Feature<Geometry, { [x: string]: any }>[]

      Features.

    • Get the format associated with this source.

      Returns FeatureFormat<Feature<Geometry, { [x: string]: any }>> | null

      } The feature format.

    • Returns boolean

      Use linear interpolation when resampling.

    • Get a list of object property names.

      Returns string[]

      List of property names.

    • Get the listeners for a specified event type. Listeners are returned in the order that they will be called in.

      Parameters

      • type: string

        Type.

      Returns Listener[] | undefined

      Listeners.

    • Returns boolean

      The source can have overlapping geometries.

    • Get the projection of the source.

      Returns Projection | null

      Projection.

    • Get an object of all property names and values.

      Returns NoInfer<{ [x: string]: any }>

      Object.

    • Get an object of all property names and values.

      Returns Partial<NoInfer<{ [x: string]: any }>> | null

      Object.

    • Parameters

      • Optionalprojection: Projection

        Projection.

      Returns number[] | null

      Resolutions.

    • Get the version number for this object. Each time the object is modified, its version number will be incremented.

      Returns number

      Revision.

    • Get the state of the source, see import("./Source.js").State for possible states.

      Returns State

      State.

    • Get the url associated with this source.

      Returns string | FeatureUrlFunction | undefined

      The url.

    • Returns Promise<ViewOptions>

      A promise for view-related properties.

    • Returns boolean | undefined

      Wrap X.

    • Returns true if the feature is contained within the source.

      Parameters

      • feature: Feature

        Feature.

      Returns boolean

      Has feature.

    • Parameters

      • Optionaltype: string

        Type. If not provided, true will be returned if this event target has any listeners.

      Returns boolean

      Has listeners.

    • Returns boolean

      The object has properties.

    • Returns boolean

      Is empty.

    • Parameters

      • extent: Extent

        Extent.

      • resolution: number

        Resolution.

      • projection: Projection

        Projection.

      Returns void

    • Parameters

      • key: string

        Key name.

      • oldValue: any

        Old value.

      Returns void

    • Protected

      Parameters

      • type: string | string[]

        Type.

      • listener: (arg0: Event | BaseEvent) => unknown

        Listener.

      Returns EventsKey | EventsKey[]

      Event key.

    • Protected

      Parameters

      • type: string | string[]

        Type.

      • listener: (arg0: Event | BaseEvent) => unknown

        Listener.

      Returns EventsKey | EventsKey[]

      Event key.

    • Protected

      Resolve once the source is ready to be used (its state is ready), or reject if it fails to load (its state is error). Sources that configure asynchronously can use this to expose data (e.g. dimensions) through a promise instead of the change event.

      Returns Promise<void>

      Resolves when the source is ready.

    • Refreshes the source. The source will be cleared, and data from the server will be reloaded.

      Returns void

    • Parameters

      • key: string

        Key name.

      • listener: Listener

        Listener.

      Returns void

    • Parameters

      • type: string

        Type.

      • listener: Listener

        Listener.

      Returns void

    • Remove a single feature from the source. If you want to batch remove features, use the module:ol/source/Vector~VectorSource#removeFeatures #removeFeatures() method instead.

      Parameters

      • feature: Feature

        Feature to remove.

      Returns void

    • Protected

      Remove feature without firing a change event.

      Parameters

      • feature: Feature

        Feature.

      Returns boolean

      True if the feature was removed, false if it was not found.

    • Batch remove features from the source. If you want to remove all features at once, use the module:ol/source/Vector~VectorSource#clear #clear() method instead.

      Parameters

      • features: Feature<Geometry, { [x: string]: any }>[]

        Features to remove.

      Returns void

    • Marks an extent as not loaded, preserving any loaded areas outside it.

      Any previously loaded extent overlapping the given extent is split into its remaining non-overlapping parts using module:ol/extent~getDifference getDifference(), which are then re-inserted into the tree.

      Parameters

      • extent: Extent

        Extent to mark as not loaded.

      Returns void

    • Sets a value.

      Parameters

      • key: string

        Key name.

      • value: any

        Value.

      • Optionalsilent: boolean

        Update without triggering an event.

      Returns void

    • Set the attributions of the source.

      Parameters

      • attributions: AttributionLike | undefined

        Attributions. Can be passed as string, Array<string>, module:ol/source/Source~Attribution, or undefined.

      Returns void

    • Set the new loader of the source. The next render cycle will use the new loader.

      Parameters

      • loader: FeatureLoader<FeatureLike>

        The loader to set.

      Returns void

    • Parameters

      • overlaps: boolean

        The source can have overlapping geometries.

      Returns void

    • Sets a collection of key-value pairs. Note that this changes any existing properties and adds new ones (it does not remove any existing properties).

      Parameters

      • values: Partial<NoInfer<Properties>>

        Values.

      • Optionalsilent: boolean

        Update without triggering an event.

      Returns void

    • Set the state of the source.

      Parameters

      • state: State

        State.

      Returns void

    • Points the source to a new url. The next render cycle will use the new url.

      Parameters

      • url: string | FeatureUrlFunction

        Url.

      Returns void

    • Protected

      Unlisten for a certain type of event.

      Parameters

      • type: string | string[]

        Type.

      • listener: (arg0: Event | BaseEvent) => unknown

        Listener.

      Returns void

    • Unsets a property.

      Parameters

      • key: string

        Key name.

      • Optionalsilent: boolean

        Unset without triggering an event.

      Returns void