Move popup so X shows when close to right edge

The map was not panning when the maker was near the right edge
so there is a bit of math to determine the appropriate amount
of panning required.  All other edges are handled by OL.