Can I disable the "highlight on click" behavior of ImageMapster?

1.4k views Asked by At

I want to use ImageMapster as a "nonintelligent storage" for highlights. I'm using it with AngularJS, and I need to track the highlight state etc inside the Angular scope. But I'm running into problems when I click on a highlight area, because Mapster sets it's own state and this is clashing with my Angular scope.

I want all the other features, I just want the highlight on click event action to be disabled inside mapster. Is this possible?

1

There are 1 answers

1
Jamie Treworgy On BEST ANSWER

Use the option staticState: false e.g.

$('img').mapster({
    staticState: false
});

This says every area is always off. (You could also use staticState: true to make every area always appear selected).

Example: http://jsfiddle.net/jamietre/T9nPX/