Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:{featureType:featureType, srsName:'EPSG:'+}),
            box: true,
            toggleKey: "ctrlKey"
        });"featureselected", this, function(e) {

share|improve this question

Your Answer


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

Browse other questions tagged or ask your own question.