FIX - показ карточек на карте и скрытие кнопок управления
This commit is contained in:
parent
15b6f39c5e
commit
fd58b965d1
|
|
@ -263,12 +263,6 @@ function showInfo(id, mapClick,doNotPushToHistory)
|
||||||
} else {
|
} else {
|
||||||
drawInfoPopup(id, !mapClick, doNotPushToHistory);
|
drawInfoPopup(id, !mapClick, doNotPushToHistory);
|
||||||
}
|
}
|
||||||
|
|
||||||
setTimeout(function(){
|
|
||||||
if (myMap._popup && $(window).width() < 665) {
|
|
||||||
$('#control').hide(200);
|
|
||||||
}
|
|
||||||
}, 200);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function drawInfoPopup(id, showPopup, doNotPushToHistory) {
|
function drawInfoPopup(id, showPopup, doNotPushToHistory) {
|
||||||
|
|
@ -333,6 +327,12 @@ function drawInfoPopup(id, showPopup, doNotPushToHistory) {
|
||||||
document.title = marker.options.title + ' – wikipoints.ru';
|
document.title = marker.options.title + ' – wikipoints.ru';
|
||||||
});
|
});
|
||||||
|
|
||||||
|
setTimeout(function(){
|
||||||
|
if (myMap._popup && $(window).width() < 665) {
|
||||||
|
$('#control').hide(200);
|
||||||
|
}
|
||||||
|
}, 200);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue