Uncaught TypeError: Cannot read property 'panTo' of undefined(…)
function click(map){
$(".town-select").on('click', 'a', function () {
map.panTo([$(this).data('coords').split(',')], {flying: true});
})
}
map.geoObjects.add(obPlacemark);
click(map);
return obPlacemark;