ResultVectorLayer.js | |
Properties | |
APIProperty: drawMode | {string} |
singleResource | {String} If ‘singleMode’ is set to true, when a query was made in ‘multiple’ mode, features of this resource only are added to the layer. |
Functions | |
OpenLayers. | Create a new ResultVectorLayer instance |
resetPanel | Called by the query as soon as the user clicks the map. |
showReult | Called by the query as soon as all responses were parses to features. |
isValidFeature | A feature is valid if : |
setSingleResource | Sets the ‘singleResource’ property if in ‘singleMode’ and if ‘singleResource’ is not already set. |
resetSingleResource | Resets the ‘singleResource’ property to null. |
resetPanel: function( options )
Called by the query as soon as the user clicks the map. Remove all features binded to a resource (coming from a query widget) from the layer, thus keeping those coming from other widgets such as the redlining.
Also, reset the ‘singleResource’ property if query is not in ‘multiple’ mode.
options | {<Object>} Hash of options. Possible keys are : |
Called by the query as soon as all responses were parses to features. Add all valid features to the vector layer.
features | {Array of <OpenLayers.Feature.Vector>} |
htmlResults | {Array of <Object>} Objects returned by queries using ‘info_format’ equal to ‘text/html’. Not supported by this wiget. |
isValidFeature: function( feature )
A feature is valid if :
feature | {<OpenLayers.Feature.Vector>} |
{Boolean} Whether the feature is valid or not.
Called by the query as soon as the user clicks the map.
resetPanel: function( options )
A feature is valid if :
isValidFeature: function( feature )
Sets the ‘singleResource’ property if in ‘singleMode’ and if ‘singleResource’ is not already set.
setSingleResource: function( resource )
Resets the ‘singleResource’ property to null.
resetSingleResource: function()