Add a function for turning window-space pixel coordinates into view space. Convert mouse click position into map position. Add scrolling and zooming.