How to display an image on a MKOverlayView?

前端 未结 6 1150
故里飘歌
故里飘歌 2020-12-05 00:59

UPDATE:

Images who are projected on the MKMapView using a MKOverlayView use the Mercator projection, while the image that I use as input data uses

6条回答
  •  萌比男神i
    2020-12-05 01:51

    My guess is that Google Maps is stretching the image non-linearly to compensate for the map projection and that your code/Apple's code isn't.

    One possible solution would be to subdivide the overlay image into smaller rectangles and call MKMapPointForCoordinate() separately for each rectangle. Then the data will be much closer to being correct.

提交回复
热议问题