updates to Snippet API and Map component