Develop js logic to display activity maps