Instances of this class decorate a protocol by merging filters provided by searchers before invoking the decorated protocol’s read method.
mapfish. | Instances of this class decorate a protocol by merging filters provided by searchers before invoking the decorated protocol’s read method. |
Properties | |
protocol | {OpenLayers.Protocol} The decorated protocol. |
Constructor | |
mapfish. | |
Functions | |
register | Register a searcher. |
unregister | Unregister a searcher. |
create | Create features, this method does nothing more than calling the decorator protocol’s create method. |
read | Merge filters provided by searchers, and call the decorated protocol’s read method, passing it the merged filter. |
update | Update features, this method does nothing more than calling the decorator protocol’s update method. |
delete | Delete features, this method does nothing more than calling the decorator protocol’s delete method. |
{OpenLayers.Protocol} The decorated protocol.
"create": function( features, options )
Create features, this method does nothing more than calling the decorator protocol’s create method.
features | {Array({OpenLayers.Feature.Vector})} or {OpenLayers.Feature.Vector} |
options | {Object} Optional object for configuring the request. This object is modified and should not be reused. |
{OpenLayers.Protocol.Response} An OpenLayers.Protocol.Response object, this object is also passed to the callback function when the request completes.
"read": function( options )
Merge filters provided by searchers, and call the decorated protocol’s read method, passing it the merged filter.
options | {Object} Optional object for configuring the request. This object is modified and should not be reused. |
{OpenLayers.Protocol.Response} An OpenLayers.Protocol.Response object, this object is also passed to the callback function when the request completes.
"update": function( features, options )
Update features, this method does nothing more than calling the decorator protocol’s update method.
features | {Array({OpenLayers.Feature.Vector})} or {OpenLayers.Feature.Vector} |
options | {Object} Optional object for configuring the request. This object is modified and should not be reused. |
{OpenLayers.Protocol.Response} An OpenLayers.Protocol.Response object, this object is also passed to the callback function when the request completes.
"delete": function( features, options )
Delete features, this method does nothing more than calling the decorator protocol’s delete method.
features | {Array({OpenLayers.Feature.Vector})} or {OpenLayers.Feature.Vector} |
options | {Object} Optional object for configuring the request. This object is modified and should not be reused. |
{OpenLayers.Protocol.Response} An OpenLayers.Protocol.Response object, this object is also passed to the callback function when the request completes.
Register a searcher.
register: function( searcher )
Unregister a searcher.
unregister: function( searcher )
Create features, this method does nothing more than calling the decorator protocol’s create method.
"create": function( features, options )
Merge filters provided by searchers, and call the decorated protocol’s read method, passing it the merged filter.
"read": function( options )
Update features, this method does nothing more than calling the decorator protocol’s update method.
"update": function( features, options )
Delete features, this method does nothing more than calling the decorator protocol’s delete method.
"delete": function( features, options )