Street View Publish Navigation angle changed - google-streetview-publish

After Getting Panoid I went through the batchUpdate function where i can establish link,
Link established correctly but the navigation arrow angle changed , how to do the proper navigation arrow in the street view publish.
I am updating latlng and connection.
Can anyone tell what is the reason why the angle is changed..
Can any one tell the arrow position is due to latlng or heading or anything else?

According the documentation, you can not set the heading of a connection, you can only set the photoId of the linked pano : the arrows are then oriented in the direction of the linked pano lat/lng.
But you can set the heading of a photo, and that's a good practice to set all headings to the same direction if you have many panoramas, in order to help the user orient himself in your panoramas constellation.
Cheers.

Related

Location Marker Pin on Esri map is changing direction when we navigate. How to stop rotating of map pin

I am using a custom map marker icon which works well as expected. However as I navigate , the direction of the marker pin on map changes. I have tried changing the coarse symbol and heading symbol as well. But that doesn't work. Here's the screenshot.
How can I avoid this. Any help would be appreciated.

MKMapview: How to get moving directions of current location pin?

I am working in a maps related application. In my application I would like to display destination pin and current location pin. On top of this I need to display an image like 'arrow' which should display moving direction of the user. Can anyone suggest me how do I achieve this.
Thanks
If I understand you correctly you want something like an arrow pointing which way they are moving, so grab the heading, and draw an overlay image on the map of the arrow. Then have it update the overlay when the heading changes.
documentation here: https://developer.apple.com/library/ios/documentation/CoreLocation/Reference/CLHeading_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40008772
https://developer.apple.com/library/ios/documentation/userexperience/Conceptual/LocationAwarenessPG/AnnotatingMaps/AnnotatingMaps.html#//apple_ref/doc/uid/TP40009497-CH6-SW1
also this might help:
MKOverlayRenderer to display UIImage over map view

How to get Visio Guide line direction

I am trying to set up some code that will have align a sub-shape in a group to a guide line on drop, but I only want to align to horizontal guides, not vertical. As yet I have not found a good way to programmatically determine what direction a guide is, only how to add guides.
So is there some property I've not found that will tell me the direction of the line? Even the guide's shapesheet doesn't seem to have anything to tell me this.
You can check the Angle cell. 0 or 180 is horizontal and 90 or 270 is vertical.
A guide is just a Shape with an InfiniteLine geometry row type and a point guide has no geometry at all.

Setting UIMenuController arrow direction not working

I have a UIMenuController which I have added a few extra items to. I would like the menu to be BELOW the text that I select, so I tried:
[UIMenuController sharedMenuController].arrowDirection = UIMenuControllerArrowDown;
That seemed to do nothing, and everything I try, won't put the menu below the text.
How can I do that?
According to the docs, arrowDirection sets the direction the arrow points; it has nothing to do with the location of the menu relative to its target area. It also looks like they don't give you any control over the positioning of the menu beyond setTargetRect:inView.
If you really want to put the menu below the text, you might be able to set a "fake" target area and change the arrow direction to point to the "real" area of interest.
However, there's probably a reason Apple does it this way. My guess? If you select some text with your finger, your hand is probably obscuring the part of the screen below the text... so it's not very helpful if the menu appears there. Going out of your way to break consistency with standard UI conventions isn't usually worth the effort.

Rotating MapView according to compass

I'm working on Map application that needs to work like original MapView on iOS.
I need to rotate mapview according to compass heading value. I tried MTLocation example also I also tried this answer But my results is not good.
Please see the screen shot.
When I rotate mapview according to heading value Map is rotating but as you can see on screen tiles is missing.
How can I solve this display problem ?
Regards
- Fatih
Hy,
I'm the author of MTLocation. Thanks for using it by the way!
For this to work you have to make sure, that your MKMapView is a subview of your ViewController's view (and not the view itself). Then you have to increase the frame of your mapView with a simple Pytaghoras - calculation: the width and height must be at least as big as the diagonal: sqrt(visibleWidth[320]^2 + visibleHeight[480-88]^2) = 506.
So that means
mapView = [[MKMapView alloc] initWithFrame:CGRectMake(-100,-100,520,520)];
Hope that helped, please consider upvoting if it fixed your problem.
You can consider using a bigger frame for the MKMapView object. It should probably be a square with each side equal to the length of the device's diagonal. The problem with this approach is that there are regions of this object that the user won't see but we process information like views for annotations related to that region anyway. Other properties like visibleMapRect would be least helpful.
Another alternative would be to be zoom in by scaling the MKMapView object on rotation. But this might make the map blurry (untested). You could zoom out on the region displayed in the map but it could lead to frequent refreshes. You can look at a middle ground where you don't zoom out until the map is rotated over a certain angle. You can also look at using two views where one of the views is off screen and updated so that it can replace the view after a certain amount of rotation so that it feels seamless.
I am working towards making my own maps application in iPhone. I want my maps to rotate as the user turns. I tried setUserTrackingMode available in iOS 5, but due to some reason it doesn't work. So I decided to take help of MTLocation framework here.
Till now I have done the following.
created a new project and copied all .m and .h files in that.
Import MapKit.h and MTLocation.h.
In Viewcontroller.h, defined property for mapView (should I define a property for locateMeItem).
In ViewDidLoad, paste the code given at the end of the page here.
I get a few errors:
Can't see the locateMe button when created programatically.
Undefined property headingEnabled.
myCustomSelector has no effect.
self.toolbar- toolbar is not a instance of ViewController.
I have tried a code at gist[dot]github[dot]com/1373050 too, but I get similar errors.
Can anybody explain a detailed procedure of this.