MapView.visibleAnnotations doesn't include MGLPolygon - annotations

I'm not sure if this is a bug of not.
When I'm displaying a map with a polygon on it and it's completely visible on screen it won't appear in the list of visibleAnnotations despite being returned in the annotations list.
I'm assuming this is a bug? or is there some rationale behind this?
Thanks in advance,
Matt

Raised a bug in MapBox and they've eventually fixed this.

Related

Unity 5.5 layers

I have a question regarding panels/layers in Unity.
My problem is that sprite which i set to be in the lowest layer, overlaps other panels which are set to be in higher levels. Is there any way to fix it? I tried almost everything and still my sprite is always overlaping layers which are above it.
in the next picture you can see settings of the layers.
I would really appreciate a help. Thanks a lot
You Can just re-order them in the Hierarchy window. top to bottom. Bottom most is above everything else.
There are other posts on this subject you can check. But you need to use transform SetAsFirstSibling, SetAsLastSibling, SetSiblingIndex, GetSiblingIndex
Please take a look at this

Panning around center view in iOS

This is a bit of a continuation of my last question, but I'm at a loss as to how I should approach this. I have a center view that is dynamic and changed via three options panels. An example of this is shown here:
http://i.imgur.com/um9tr5X.gif
I realize that I should be using the Pan Gesture to move it around, but I'm new to xCode and a bit lost with how to add the momentum and snap to the views. I considered using paging in a scrollview to achieve the effect, but I'm not sure I'll be able to do that.
I would really appreciate a bit of a kickstart in the direction I should be going.
Thanks.
You can search for open source control which other developers has developed if you are new to xcode.
Try this one:
https://github.com/MarcoSero/MSMatrixController
This is something similar to what you want. You will need little modification here to achieve your desired look.
Thanks!

MKMapView display route

Im pretty new to mkmapview so I'll hope my question will be clear enough.
Let's say I have a code where im saving the userLocation in an array (MKuserLocation type). im saving this for every step the user take and than I want to display this.
How do I do that? how can I use this userlocation with the coordinates that I save and display the path?
* im adding this after the comment I was told to use MKmapoverlay. does someone can give me an example how to use this with coordinates? or have some guide (I really tried something clear enough on google but didn't)
Thanks
yes, you can make a path from thoses point. You must be careful to to have your array of point in the right order otherwise you will draw lines between point in every direction. you can draw a line with an mkoverlay
I have faced same issue few days ago and I found the sample application on GitHub.you can download the project from here.
I hope it will be helpful !!

Is it possible to detect the entire face region (only) in IOS?

I need to detect the full face region in my app...
Is it possible to detect that region ?
Currently i was using the CIDector to get the face features...
CIDector detects only nose,left and right eye...
how do i detect the entire full face(not as square marked face entire space. I attached the image below exactly what is the need) from the source image...?
any idea or solution for this problem is highly appreciated...
Thanks in advance....
Regards,
Spynet
I am not sure, if it is possible to do it using CIDetector. I would recommend you more sofisticated solution like OpenCV. Take a look here: http://www.eosgarden.com/en/opensource/opencv-ios/overview/
and to the OpenCV documentation:
http://opencv.willowgarage.com/wiki/
Hope it helps. It is ore complicated way but you can handle it.

iPhone: An UI question

I want to implement an UI which should look like Speedometer. Is there a way to implement like that? Some of apps i seen that they have implemented. For ex. an app called "TaxCaster" implemented it. Could someone help me how can i achieve it?
Thank you in Advance.
That is possible yes, but it will not be easy. You will have to either use OpenGL or Core Animation. I would suggest the latter if you want something like they have in TaxCaster.
You can find more about Core Animation here.
I hope it helps.
A possibility is to simply have two UIImageViews:
A background that has all the measurement listings (i.e. the ruler part), and another that would act as your needle, pointing to the current measurement. All you would need to do when changing the current measurement would be to use the transform property to rotate it into the correct position.
Not a trivial amount of work, but it shouldn't be too hard.