setMap method implemented. needs testing