iOS MapKit label building on park map - iphone

What I'm trying to achieve is that there is an event being held at Exhibition Park in Canberra (that's in Australia) which makes use of the building on the property. What I'm not sure about is how to show these buildings and label them in MapKit when they don't appear in the maps application.
Does anyone have any solutions about this? Should I just use pin points and annotations or is there a better way of accomplishing things?
Please note that I'm unfamiliar with MapKit so as much detail in the answer would be appreciated.
Thanks,
Matt.

I would recommend you use MKPinAnnotation to add pins to the map, configured to show callouts when you tap on them.
The easiest way to pickup MapKit is to watch the WWDC video on the subject, which you can download from the iOS developer portal.

Related

How to drop a pin on the map on a particular place And draw route from user current location to that praticular place?

IN my project I need to draw a route between two pins. Can anyone tell me what are the methods used. And give me the example code for that.
Try these posts.. It will help you i think
http://navarra.ca/?p=786
http://spitzkoff.com/craig/?p=108
This will automatically use Google Direction API and will fetch the points in between the locations i guess..
Anyhow see this blog http://laurilarjo.wordpress.com/2010/10/23/using-google-directions-api-and-drawing-routes-in-iphone-mkmapview/
You can use MKPolyLineView - it allows you to draw a line (or polyline, if you need several segments) as an overlay on top of the MKMapView. Apple even has example code using this here.
Note that this method uses an MKOverlayView which was added in iOS 4, so it only works in iOS 4+. If you need to target iOS 3 devices, then you can use the MKAnnotationView hack that others have linked to (originating as far as I can tell from that spitzkoff blog post). I used to do it that way, but did away with it when iOS 4 had matured enough - I'd wholeheartedly recommend doing it the new way if you don't need iOS 3 support.
As for pins, use MKPinAnnotationView
Go to google maps. "Get directions". Make a screenshot. Then use UIImageView. This is what I would do.

Google Maps curl animation in MKMapView / Map Kit on iOS4

Anyone know whether (and if so, how) we can create the half-turned page effect Google Maps on the iPad uses to show the options to change the Map type?..
See below image to see what I'm talkin' about..
Incidentally, any pretty good Map Kit tutorials you guys know of that are out there? (covering anything new brought on through iOS4) Support for Map Kit ain't much out there it seems...
Thanks!
It's a new UIModalTransitionStyle in iOS 4.0 called UIModalTransitionStylePartialCurl
re: good mapkit tutorials, watch the WWDC map overlays video.

Are tile overlays possible with the iPhone's MapKit

I already have a tile source set up for use with the Google Maps JavaScript API. I am trying to translate this for use with the iPhone MapKit. I have correctly implemented the javascript zooming levels into mapkit. Whenever - (void)mapView:(MKMapView *)mapView regionDidChangeAnimated:(BOOL)animated is called, I snap the region to the nearest zoom level based on the same center point.
Is it possible to implement a solution possibly with CATiledLayer to implement a tiling solution. Does the iPhone use the standard 256x256 tiles like google maps does natively? Any direction or help on this would be greatly appreciated. I would rather not waste a couple weeks trying to implement this if it's not possible.
FWIW, I spent quite a bit of time looking for a decent solution… before diving into a CATiledLayer example, I noticed MKOverlay and MKOverlayView — which are new in iOS 4 and plug right into a MKMapView.
Couldn’t find a good example implementation of using MKOverlays that pull arbitrary image data (say, UIImages from a remote tile server), but I tinkered around with the API enough until I got it working.
Built a simple example implementation of it in case anyone (like me) wants a reference:
http://github.com/mtigas/iOS-MapLayerDemo
Hope this helps someone out in the future.
MapKit doesn't provide much in the way of custom tile sources (in fact, it provides absolutely nothing to customize sources: you either use Google Maps or you don't). I've been working with a similar problem myself, though, and I've found RouteMe to be a pretty good solution for custom maps: http://code.google.com/p/route-me/
Built-in support exists for OpenStreetMaps, OpenAerialMaps (which is currently offline), Virtual Earth, and Yahoo Maps, but the framework makes it pretty easy to plug in your own tile source, too.
Yes, since iOS 7, MKTileOverlay will do:
https://developer.apple.com/library/ios/documentation/MapKit/Reference/MKTileOverlay_class/Reference/Reference.html

How to Display offline map in iphone using Mapkit

How to Display offline map in iphone using mapkit?
if i use static image then how do i get current location and pin drop on it?
anyone has idea please suggest some solution.
Thank you.
Try this post Force MapKit use cached map tiles only/disable network programmatically
It tells about open source map OSM , helps offline map browsing.
Source from here http://developers.cloudmade.com/projects/show/iphone-sdk.
Hope this helps , or r u looking for some thing else.
Similar to What SDKs can be used for creating offline maps application for iPad/iPhone?
In iOS4+, you can use an image MKOverlay to overlay whatever you want on top of a MapKit map. You can provide a semi-transperant base map of your own providing to display when the underlying Google Map can not be loaded. But you can not control what MapKit is doing under the hood caching Google maps.

Showing Driving Directions in MapKit

is there any way to show the driving directions in iphones MapKit?
is there any way to get the coordinates and names of a route as an XML or in other formates from google MAPs API ?
eg , http://maps.google.com/maps?f=d&hl=en&geocode=&saddr=39.23232,-103.343433&daddr=41.23232,-104.344343&ie=UTF8&z=12
No, you cannot use MapKit for driving directions. It does not support this.
However, you could improvise a transparent view on top of MapKit and draw something, but nothing native to MapKit.
EDIT: Here is a sample of drawing routes yourself:
http://spitzkoff.com/craig/?p=65
You should try Kishikawa Katsumi's project MapKit-Route-Directions is really well made and useful. You can find the sample project at github https://github.com/kishikawakatsumi/MapKit-Route-Directions.git
You can add to your view UIWebView. Than load to UIWebView something like this
http://code.google.com/apis/maps/documentation/examples/directions-simple.html