Driving directions are not supported in MapKit. so I think I can show driving direction in a webview. I am showing google maps in uiwebview, but it shows the whole site I just want to show only map part with some zoom so that it looks like original maps application of iphone. Also I don’t know if this breaks the apple’s Human Interface Guidelines(HIG) Rules, tell me if it is.
Share
Load a string like this as an NSString (maybe strip the newlines). You can change the latitude and longitude, zoom level etc with
stringWithFormatThen set your
UIWebViews html to that. It will give you a page with just a map on it, allow you to scroll with your finger or zoom in, pinch zoom, and place a marker.Use this to load the HTML: