Your SlideShare is downloading. ×
Getting Oriented with MapKit: Everything you need to get started with the new mapping framework.
Getting Oriented with MapKit: Everything you need to get started with the new mapping framework.
Getting Oriented with MapKit: Everything you need to get started with the new mapping framework.
Getting Oriented with MapKit: Everything you need to get started with the new mapping framework.
Getting Oriented with MapKit: Everything you need to get started with the new mapping framework.
Getting Oriented with MapKit: Everything you need to get started with the new mapping framework.
Getting Oriented with MapKit: Everything you need to get started with the new mapping framework.
Getting Oriented with MapKit: Everything you need to get started with the new mapping framework.
Getting Oriented with MapKit: Everything you need to get started with the new mapping framework.
Getting Oriented with MapKit: Everything you need to get started with the new mapping framework.
Getting Oriented with MapKit: Everything you need to get started with the new mapping framework.
Getting Oriented with MapKit: Everything you need to get started with the new mapping framework.
Getting Oriented with MapKit: Everything you need to get started with the new mapping framework.
Getting Oriented with MapKit: Everything you need to get started with the new mapping framework.
Getting Oriented with MapKit: Everything you need to get started with the new mapping framework.
Getting Oriented with MapKit: Everything you need to get started with the new mapping framework.
Getting Oriented with MapKit: Everything you need to get started with the new mapping framework.
Getting Oriented with MapKit: Everything you need to get started with the new mapping framework.
Getting Oriented with MapKit: Everything you need to get started with the new mapping framework.
Getting Oriented with MapKit: Everything you need to get started with the new mapping framework.
Getting Oriented with MapKit: Everything you need to get started with the new mapping framework.
Getting Oriented with MapKit: Everything you need to get started with the new mapping framework.
Getting Oriented with MapKit: Everything you need to get started with the new mapping framework.
Getting Oriented with MapKit: Everything you need to get started with the new mapping framework.
Getting Oriented with MapKit: Everything you need to get started with the new mapping framework.
Getting Oriented with MapKit: Everything you need to get started with the new mapping framework.
Getting Oriented with MapKit: Everything you need to get started with the new mapping framework.
Getting Oriented with MapKit: Everything you need to get started with the new mapping framework.
Getting Oriented with MapKit: Everything you need to get started with the new mapping framework.
Getting Oriented with MapKit: Everything you need to get started with the new mapping framework.
Getting Oriented with MapKit: Everything you need to get started with the new mapping framework.
Getting Oriented with MapKit: Everything you need to get started with the new mapping framework.
Getting Oriented with MapKit: Everything you need to get started with the new mapping framework.
Getting Oriented with MapKit: Everything you need to get started with the new mapping framework.
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Getting Oriented with MapKit: Everything you need to get started with the new mapping framework.

13,395

Published on

New in 3.0 Map Kit works with the Google Mobile Maps Service and features panning and zooming, custom annotations, current location and geocoding. This new framework opens up many new possibilities …

New in 3.0 Map Kit works with the Google Mobile Maps Service and features panning and zooming, custom annotations, current location and geocoding. This new framework opens up many new possibilities programs not previously possible. Come learn everything you need to know to get started as well as some tips and tricks to speed your programming along.

Published in: Technology, News & Politics
1 Comment
6 Likes
Statistics
Notes
  • Best article I could find using Google on MapKit
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total Views
13,395
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
191
Comments
1
Likes
6
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. MapKit Julio Barros Julio@E-String.com
  • 2. Why Maps? • iPhone is a mobile / pocket computer • Where am I? • What’s near me? • How do I get somewhere?
  • 3. Dark ages (pre 3.0) • Static map images • Web view with Javascript shenanigans • Exit out to google maps
  • 4. MapKit • New in iPhone 3.x • Embed map in your app • Uses Google map tiles • Familiar map UI
  • 5. Important Classes MKMapView MKAnnotation (protocol) MKAnnotationView
  • 6. Important Classes MKMapView MKMapViewDelegate MKAnnotation (protocol) MKAnnotationView MKPinAnnotationView
  • 7. Simplest Example • MKMapView ... just a view • Don’t forget to add mapkit framework • Or use Interface Builder
  • 8. That was easy
  • 9. Show User Location
  • 10. Showing a particular area on the map Latitude Span Center “best fit” not exactly what you set Longitude Span
  • 11. Regions • MKCoordinateRegion
  • 12. Denver, Colorado
  • 13. Demo data plist of Brewery information: name, address, latitude, longitude
  • 14. Loading Demo Data
  • 15. Local area
  • 16. MKAnnotation
  • 17. MyAnnotation Class
  • 18. Adding Annotations
  • 19. Default Pins at annotations
  • 20. Customizing pins • MKPinAnnotationView • MKMapViewDelegate - set a delegate
  • 21. Our purple pins
  • 22. Custom markers • MKAnnotationView
  • 23. Customizing the view
  • 24. Customizing the Callout
  • 25. Tapping the call out view
  • 26. Reverse Geocoding • Geocoding : address to coordinates • geocoder.us other services • Reverse geocoding : coordinates to address
  • 27. MKReverseGeocoder
  • 28. MKPlacemark • Address info including, country code, country, postal code, administrative area, sub administrative area, locality, sub locality, thoroughfare, sub thoroughfare • Conforms to MKAnnotation • Has address dictionary with Address Book keys
  • 29. Number of pins • Try to limit annotations to ~100(?) • Implement region change delegate methods • Create and manage your own clusters
  • 30. Challenges • Anchoring an object to a location on the map and having it scale. • Shapes - neighborhoods • Lines - routes / paths • View space to Geo Space - (CGPoint)convertCoordinate:(CLLocationCoordinate2D) coordinate toPointToView:(UIView *)view - (CLLocationCoordinate2D)convertPoint:(CGPoint)point toCoordinateFromView:(UIView *)view
  • 31. Legal limitations I’m not a lawyer but think carefully before using this for: vehicle/fleet tracking routing cacheing tiles geocoding / mass reverse geocoding Read the TOS http://code.google.com/apis/maps/iphone/ terms.html
  • 32. Possible Options • OpenStreetMap.org (OSM) - map/tile data • Route-Me - OSS map view • Cloudemade.com - services around OSM • geocoder.us (among others)
  • 33. Resources • MapKit Framework Reference - Apple • Using Map Kit with Bill Dudney - PragProg • Using Map Kit ... Bill Dudney - Wednesday
  • 34. Thank You Julio Barros Julio@E-String.com http://www.E-String.com http://twitter.com/JulioBarros Also on Face book and Linked In

×