Issue#1213 coordinate display edge detection

Edge detection is working. I couldn't get it to calculate the distance to the edges accounting for camera zoom, so when the camera is zoomed far in or far out, it changes orientation too far away from the edge. I think I'm going to need some help from an expert on that one.