nfarina / calloutview

A lightweight callout view class for iOS mimicking UICalloutView.
http://nfarina.com/post/78014139253/smcalloutview-for-ios-7
Apache License 2.0
1.2k stars 190 forks source link

Not issue, but question: move the callout to follow object? #69

Open awedeebawe opened 10 years ago

awedeebawe commented 10 years ago

Allright, I use mapbox iOS SDK from source and I added callout to polygons. However the callout appears on top middle of the bounding box of the polygon. And when I zoom in/out, the map and the polygon size changes, but the callout stays "anchored". Can you point me where to look and change code, to make the callout to follow the polygon? (I know markers are anchored objects too and that's why it works there, but the polygons...... :) )

nfarina commented 10 years ago

So typically the callout is presented from "inside" the object it's pointing to; that way it stays attached to the view as the view moves around.

For mapbox, I'm not sure how they do it - they may be repositioning the callout manually? Does the callout follow non-polygon objects?