I need to set up loadMask for OpenLayers.Control.GetFeature. I know I should hide the mask on featureselected event or on protocol callback but when should I show the mask?

Here is code (assume I have _mask global variable with show and hide methods):

var selectionControl = new OpenLayers.Control.GetFeature({
            protocol: this.map.layerUtils.createWFSProtocol({featureType:featureType, srsName:'EPSG:'+ this.map.projectionCode}),
            box: true,
            toggleKey: "ctrlKey"

selectionControl.events.register("featureselected", this, function(e) {

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.