abstracting over whether map wrapping is enabled