Fixed error with displaying legend info

- Removed reference to removed partial.
- Corrected object passed to getMapLegendDetails.