only show fit button if there is data to display. Closes #1883
remove unused 'bounds' variable
Merge pull request #1904 from rashidkpc/fix/fit-map-exception

Disable the map fit button if there is no data