attempt at fixing silliness with texts trying to highlight themselves

This commit is contained in:
sanj 2010-11-05 02:07:26 +05:30
parent 9dd5598ed1
commit 7ebab72ff2

View File

@ -78,6 +78,11 @@ function onFeatureSelect(f) {
$('.highlightOverlay').hide().remove(); $('.highlightOverlay').hide().remove();
// $('img').removeClass('mapSelect'); // $('img').removeClass('mapSelect');
var $img = $('[data-id=' + id + ']'); var $img = $('[data-id=' + id + ']');
//ugly if statement.
if ($img.hasClass('textWrapper')) {
return;
}
var offset = $img.find('img').offset(); var offset = $img.find('img').offset();
var height = $img.find('img').height(); var height = $img.find('img').height();
var width = $img.find('img').width(); var width = $img.find('img').width();