-
Notifications
You must be signed in to change notification settings - Fork 22
How to properly set the Custom position for CalloutView? #1
Comments
I just confirmed it's working. Did you set the |
It's going inside the delegate method but then it's not coming at the right place for me. @okhanokbay Thanks for the quick response. |
In the example project's BasicCalloutView class, I added:
Also, in the example project's BasicExampleViewController class, added:
Can you please try this way? Or you can share an example project that demonstrates the problem you are facing and I can try to help. @hemangshah |
Please re-open if there is anything else about this issue. |
Hi @okhanokbay, I still don't understand how The values are as follows: tabbarHeight = 50.0, margin = 20.0, and calloutViewHeight = 100.0 |
I noticed that it is not displaying (showing) the CalloutView based on the above value. But instead, it is displaying it based on the annotation position on the map. To understand this, I will add some screenshots here, FYR. |
Yes, it's altering the center of callout view related to annotation view, not related to view or map view itself. @hemangshah |
Ok, thanks for your quick reply @okhanokbay, Can I show my own view when annotation will be selected? Instead of showing a custom call out? |
You can return any UIView subclass (also must conform to |
@okhanokbay, sorry, I think, you have misunderstood this for that I have raised another issue which you can check. My own view means (not in a form of an annotation) instead I want it to be displayed in |
Is it #4 ? @hemangshah |
@okhanokbay, Yes! |
With the current code, it's not working. Even I tried with other values too but it's not working.
The text was updated successfully, but these errors were encountered: