[OpenLayers-Trac] [OpenLayers] #2957: WFS protocol's read method
should respect readOptions and pass them to the format
OpenLayers
trac-20090302 at openlayers.org
Thu Dec 2 04:34:22 EST 2010
#2957: WFS protocol's read method should respect readOptions and pass them to the
format
----------------------+-----------------------------------------------------
Reporter: ahocevar | Owner:
Type: feature | Status: new
Priority: minor | Milestone: 2.11 Release
Component: general | Version: 2.10
Keywords: | State:
----------------------+-----------------------------------------------------
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
}
});
}}}
--
Ticket URL: <http://trac.openlayers.org/ticket/2957>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list