Skip to content

Commit

Permalink
Add toFront option available on area/plot/link options when triggerin…
Browse files Browse the repository at this point in the history
…g the 'udapte' event
  • Loading branch information
neveldo committed Jan 1, 2017
1 parent f4ddd10 commit 5b4ace8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/jquery.mapael.js
Original file line number Diff line number Diff line change
Expand Up @@ -1244,6 +1244,10 @@
if (elemOptions.value !== undefined)
elem.value = elemOptions.value;

if (elemOptions.toFront === true) {
elem.mapElem.toFront();
}

// Update the label
if (elem.textElem) {
if (elemOptions.text !== undefined && elemOptions.text.content !== undefined && elemOptions.text.content != elem.textElem.attrs.text)
Expand Down

0 comments on commit 5b4ace8

Please sign in to comment.