I try to point a marker on the map with the following call :
$('#sideBar').on('click','.rightCliker',function(e){
e.preventDefault();
var relationId = $(this).attr('data-id');
var markerPrt = $('marker_'+relationId);
map.setZoom(9);
map.setCenter(markerPrt.getPosition());
});
But I get the following error:
Uncaught TypeError: markerPrt.getPosition is not a function
What have I done wrong? Thanks ;-)