The easiest solution would be to refresh the page everytime you select some option and append it in the query string. this way you can use macros to specify what items/pages to select to your map web part based on that query string so no coding gets involved here.