Ticket #2957 (closed feature: fixed)
WFS protocol's read method should respect readOptions and pass them to the format
| Reported by: | ahocevar | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.11 Release |
| Component: | general | Version: | SVN |
| Keywords: | Cc: | ||
| State: | Complete |
Description
While it is possible to configure the WFS protocol with readOptions, these will only be passed to the format if they have an output property. This ticket proposes that readOptions can also be passed to the protocol's read method, and that they will always be passed to the format.
With this change, applications will be able to use a configured WFS protocol to e.g. determine the hit count:
protocol.read({
readOptions: {output: "object"},
resultType: "hits",
maxFeatures: null,
callback: function(resp) {
// process resp.numberOfFeatures here
}
});
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

