Tried to ensure that gmap is within bonds