Introduction to MapKit
by Rob C on Jul 09, 2009
An introductory presentation on how to use MapKit in your iPhone applications.
An introductory presentation on how to use MapKit in your iPhone applications.
(From Melbourne Cocoaheads July 2009)
21 Embeds 968
| http://iphonecodesamples.blogspot.com |
508 |
| http://www.slideshare.net |
319 |
| http://iphonecodesamples.blogspot.in |
51 |
| http://cocoatouchdown.blogspot.com |
16 |
| http://www.hacioglumurat.com |
13 |
| http://murathacioglu.blogspot.com |
12 |
| http://iphonecodesamples.blogspot.co.uk |
9 |
| http://iphonecodesamples.blogspot.com.au |
8 |
| http://iphonecodesamples.blogspot.it |
5 |
| http://iphonecodesamples.blogspot.de |
5 |
| http://iphonecodesamples.blogspot.com.br |
4 |
| http://iphonecodesamples.blogspot.com.es |
3 |
| http://translate.googleusercontent.com |
3 |
| http://webcache.googleusercontent.com |
3 |
| http://iphonecodesamples.blogspot.se |
2 |
| http://iphonecodesamples.blogspot.mx |
2 |
| http://iphonecodesamples.blogspot.co.nz |
1 |
| http://iphonecodesamples.blogspot.hk |
1 |
| http://iphonecodesamples.blogspot.pt |
1 |
| http://iphonecodesamples.blogspot.fr |
1 |
| http://iphonecodesamples.blogspot.gr |
1 |
More...
Statistics
- Favorites
- 9
- Downloads
- 335
- Embed Views
- 968
- Views on SlideShare
- 31,535
- Total Views
- 32,503
What MapKit provides (if you didn’t catch any of the 3.0 media).
What you need to do to support it in your iPhone application
Setting the position of the map
Adding & Managing Annotations
Using Core Location to be able to plot the user’s current position on screen as well
Other hints & tips
What MapKit provides (if you didn’t catch any of the 3.0 media).
What you need to do to support it in your iPhone application
Setting the position of the map
Adding & Managing Annotations
Using Core Location to be able to plot the user’s current position on screen as well
Other hints & tips
What MapKit provides (if you didn’t catch any of the 3.0 media).
What you need to do to support it in your iPhone application
Setting the position of the map
Adding & Managing Annotations
Using Core Location to be able to plot the user’s current position on screen as well
Other hints & tips
What MapKit provides (if you didn’t catch any of the 3.0 media).
What you need to do to support it in your iPhone application
Setting the position of the map
Adding & Managing Annotations
Using Core Location to be able to plot the user’s current position on screen as well
Other hints & tips
What MapKit provides (if you didn’t catch any of the 3.0 media).
What you need to do to support it in your iPhone application
Setting the position of the map
Adding & Managing Annotations
Using Core Location to be able to plot the user’s current position on screen as well
Other hints & tips
What MapKit provides (if you didn’t catch any of the 3.0 media).
What you need to do to support it in your iPhone application
Setting the position of the map
Adding & Managing Annotations
Using Core Location to be able to plot the user’s current position on screen as well
Other hints & tips
Embed Google Maps in your app
Full UX of Maps application (panning, scrolling, Views etc).
Supports regular, satellite, hybrid maps
Handles caching, tile loading, memory warnings, connectivity changes
Shows mapview with a single annotation & callout
Will explain full process later
Also may want to integrate CL into your app (eg. showing user’s location on a map)
- Centre is the latitude & longitude point which define the location which is centred on screen.
- Span defines the zoom level via the lat/long range (in degrees).
- Check MKCoordinateSpan in the docs for how it needs to be set
(long varies depending on the latitude).
- Setting this will have an impact on the zoom level due to all of that
- Can adjust the centre position without impacting zoom by setting the centerCoordinate property (takes a CLLocationCoordinate2D type)
- 1-2 init MKMapView (via code)
- 4-8 set the centre to the location (user value), plus the zoom level. (0.5km lat)
- 10 sets the region to our generated one
- Title & Subtitle are optional (although title is recommended).
- T & ST are used as the primary & secondary labels on the default callout