I need to retreive the latitude and longitude coordinates of the corners of a shape (rectangle). The way that Ive tried it is to take the centre location. Convert it into XY values, then take the width and height of the shape and then minus half the width and height from the centre XY values to retreive the upper left corner coordinates and then add them to get the lower right coordinates. Then using these I can calculate their locations. However when I do this the push pins that should appear on the corner of the shape, appear somewhere within the shape. Any ideas?
Im sure someone has already done this. Please help.