Simplified code for zooming and panning on map. Fixed interaction bug that required hovering over polygons for pan and zoom to work