Use custom AngularJS popup for map and count compared items