MKMapView Cannot Zoom Map - iphone

I created a really basic app that just shows an MKMapView and the UserLocation. I'm having problems drawing this base map sometimes (it only shows pieces of the map), and whenever I pinch zoom the map, it fails to redraw, and just shows the blank gray tiles. The console shows this whenever it needs to get a new map tile:
/SourceCache/GoogleMobileMaps/GoogleMobileMaps-263.5/googlenav/mac/Loader.mm:231 server returned error: 502
This looks like a gateway error, but that doesn't make any sense, since I'm using open WiFi for testing. I haven't implemented any region zooming code, I just want to display and zoom the basic map first. I'm using iOS 4.2.1 (8C148), so I'm wondering if this is a problem with the newer iOS versions? Any ideas?
Edit: Works fine now, must just be a problem with Google's servers.

Just started getting the same error. I've searched online and can't see anyone else having the issue (yet). Thought it was something I did, but suspect its at Google's end.

I think that the problem is solved now. It had to be a momentary Google Maps problem.

Related

Capture API works bad in dark especially in night time or in previewing dark corners through camera

I was using this library which is https://github.com/CosmicMind/Material. Everything is already working well aside from one which requires a bit of optimization,
I've tried this one which works pretty well with improved lighting in the dark, it is pretty much useful for devices that don't have flash such as iPads.
https://github.com/ooper-shlab/AVCamManual-Swift
I can't seem to get where the lighting optimization happens in the code. I would've help if I have figured out.
The preview really would look a lot darker using the Capture API of material.
Screenshots of each can be seen below:
The demo for Material's Capture Api:
The demo for AVFoundation:
Based on the given answer above by #Jojo Narté, the correct usage of the API would be to set the Capture.capturePreset value to .presetPhoto.
So after trying to do some trial and error on the code of AVFoundation.
Commenting codes until I could see which block of code is responsible for the lighting.
I was able to find out that it was the AVCaptureSession.sessionPreset which was originally set to = AVCaptureSessionPresetHigh, after setting it to
AVCaptureSession.sessionPreset = AVCaptureSessionPresetPhoto
Now it's better and looks like the default on ios camera app.

JScrollPane touch scrolling doesn't work in IE10/Surface

I've tried searching for this but it doesn't appear to be a known issue.
Finger scrolling doesn't appear to work in IE10, even on the main jscrollpane site: http://jscrollpane.kelvinluck.com/
Demos: http://jscrollpane.kelvinluck.com/basic.html
Only tested on a Surface RT device...
It seems to work fine on iOS/Android devices.
Any ideas?
Thanks
I am also having the same issue, I have found the following article somewhat helpful, but still can't seem to get it to work completely. I would have just commented but I don't have enough rep apparently.
http://msdn.microsoft.com/en-us/library/ie/hh772044(v=vs.85).aspx
From what I can tell, this has something to do with IE10 and 11 hijacking the touch action on touch devices in order to allow the user to swipe left and right to switch between apps. I am currently testing on a Surface Pro2 using both the metro version of IE11 and the desktop version of IE11. According to the article you should be able to prevent that behavior using css "touch-action" property but I can't quite get it to work right. I'll update if I find anything more useful.

Couldn't find default.styleproto in framework

Its showing up with no graphics because of this, and this just happened. Everything was working fine until this new update came out. I created a new project to test if I messed up the original one, but still same problem. I also repeated the steps but I keep finding the source of the problem to be in the actual Map view in the objects folder for you to add to the storyboard. It does not seem to be in the Mapkits framework, but I may be wrong.
This seems because of the switch for apple, now that they dont have google supporting their maps, and I can not find a single thing online about the solution to this.
I just want to display a mapview and show two points with directions. Is there a way to do this with the new apple update?

iPhone MKMapKit Image Overlay

How can an image overlay be applied to a MKMapView? Basically, when you zoom in a specific location, I want an image to appear on top of the map that gives a more detailed view of the location.
I've had a look around and found different types of methods to use. I had a working example for an older SDK using the DrawMapRect function but this no longer seems to work on 4.2.
This is a good place to start...
http://developer.apple.com/library/ios/#documentation/MapKit/Reference/MKOverlayView_class/Reference/Reference.html
I was looking for polygon sample code though.
#omniscian: If you have solved it you should post something helpful for others. This page has a high google rank.

Resizing Custom MKAnnotationView According to MapKit Zoom Level

Here is the situation:
I am displaying images on the map by using custom annotations. Everything works fine but I would like to improve it visually by resizing the AnnotationView so that it shrinks as the map is zoomed out. I want to do this because, obviously, more annotations fill up the screen and need to be shrunk so that they don't overlap each other too much and the user can see more annotations. (Of course, I would like to enlarge AnnotationViews when the map is zoomed in again).
I have achieved this by removing all annotations from the map and adding them back again, whenever regionDidChangeAnimated is called. However, these images are loaded from the internet, so downloading the images again (since the annotations have been removed) doesn't seem to make sense.
I hope I have explained the situation well, and hope to contribute to SO in the future.
Thanks in advance.
P.S. I'm developing with iOS 4.0
Since you are using iOS 4.0 I would suggest using a class that conforms to the MKOverlay protocol instead of MKAnnotationView. Overlays zoom with the map and will scale appropriately. You can probably use 1 overlay to handle all your annotations. Check out the HazardMap demo Apple provided in the 2010 WWDC talks on http://developer.apple.com
Alternatively, you could use something like the k nearest neighbors algorithm to group annotations per zoom scale. However, that can be kind of slow if you have a lot of annotations. I tried it once with several thousand annotations and did not like the performance hit that was incurred. I think < 1000 annotations might have decent performance with this method though.
It sounds like you're already on the right path and that the only real problem is the downloading of the images. Is there any particular reason you can't cache them by writing them to the documents directory (or the cache directory if you want them to go way when the app quits) when you receive them and look there first before displaying them?