Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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}),
            clickout:true,
            box: true,
            toggleKey: "ctrlKey"
        });

selectionControl.events.register("featureselected", this, function(e) {
            _mask.hide();
        });

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.