Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions js/jquery.mapael.js
Original file line number Diff line number Diff line change
Expand Up @@ -1180,11 +1180,16 @@
var plotOffsetX;
var plotOffsetY;

elem.mapElem.toFront();

if (elemOptions.value !== undefined)
elem.value = elemOptions.value;

// Update the label
if (elem.textElem) {

elem.textElem.toFront();

if (elemOptions.text !== undefined && elemOptions.text.content !== undefined && elemOptions.text.content != elem.textElem.attrs.text)
elem.textElem.attr({text: elemOptions.text.content});

Expand Down Expand Up @@ -1802,10 +1807,12 @@
elemOut: function (mapElem, textElem) {
var self = this;
// Set mapElem
mapElem.toFront();
if (mapElem.attrsHover.animDuration > 0) mapElem.animate(mapElem.originalAttrs, mapElem.attrsHover.animDuration);
else mapElem.attr(mapElem.originalAttrs);
// Set textElem
if (textElem) {
textElem.toFront();
if (textElem.attrsHover.animDuration > 0) textElem.animate(textElem.originalAttrs, textElem.attrsHover.animDuration);
else textElem.attr(textElem.originalAttrs);
}
Expand Down