0

I have setup an imagemap with the jquery-plugin imagemapster Could you please give a tip howto let an area in the imagemape be no longer clickable, after it has already been clicked?

I tried the following, but it does not work:

function userClicked (e) {
    if(e.key == okKey){
        //success
        $('img').mapster({
           areas:[ {
              key: e.key,
              isSelectable: false
           }]
        });
    }
} 
Cœur
  • 37,241
  • 25
  • 195
  • 267
Kurt
  • 264
  • 1
  • 7
  • 23
  • ok, I solved it myself: $('img').mapster('set_options',{areas:[{key:'anyAreaKey',isDeselectable:false }]}) – Kurt Apr 13 '12 at 09:18

1 Answers1

0

$('img').mapster('set_options',{areas:[{key:'anyAreaKey',isDeselectable:false }]})

Kurt
  • 264
  • 1
  • 7
  • 23