enhancements to mapdetail. (need to fix formatting/constraints)