The battery had a commanding view of the Bay of Gibraltar to the west and Spain to the north and was originally built to take one 9.2 inch breechloading gun Mk VI to bear on both the land batteries in Spain and out over the Bay at a range of 10000 yards .