• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
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.

on

  • 17,886 views

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.

Statistics

Views

Total Views
17,886
Views on SlideShare
17,746
Embed Views
140

Actions

Likes
5
Downloads
186
Comments
1

2 Embeds 140

http://www.slideshare.net 139
http://webcache.googleusercontent.com 1

Accessibility

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

11 of 1 previous next

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
  • Best article I could find using Google on MapKit
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    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. Presentation Transcript

    • MapKit Julio Barros Julio@E-String.com
    • Why Maps? • iPhone is a mobile / pocket computer • Where am I? • What’s near me? • How do I get somewhere?
    • Dark ages (pre 3.0) • Static map images • Web view with Javascript shenanigans • Exit out to google maps
    • MapKit • New in iPhone 3.x • Embed map in your app • Uses Google map tiles • Familiar map UI
    • Important Classes MKMapView MKAnnotation (protocol) MKAnnotationView
    • Important Classes MKMapView MKMapViewDelegate MKAnnotation (protocol) MKAnnotationView MKPinAnnotationView
    • Simplest Example • MKMapView ... just a view • Don’t forget to add mapkit framework • Or use Interface Builder
    • That was easy
    • Show User Location
    • Showing a particular area on the map Latitude Span Center “best fit” not exactly what you set Longitude Span
    • Regions • MKCoordinateRegion
    • Denver, Colorado
    • Demo data plist of Brewery information: name, address, latitude, longitude
    • Loading Demo Data
    • Local area
    • MKAnnotation
    • MyAnnotation Class
    • Adding Annotations
    • Default Pins at annotations
    • Customizing pins • MKPinAnnotationView • MKMapViewDelegate - set a delegate
    • Our purple pins
    • Custom markers • MKAnnotationView
    • Customizing the view
    • Customizing the Callout
    • Tapping the call out view
    • Reverse Geocoding • Geocoding : address to coordinates • geocoder.us other services • Reverse geocoding : coordinates to address
    • MKReverseGeocoder
    • 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
    • Number of pins • Try to limit annotations to ~100(?) • Implement region change delegate methods • Create and manage your own clusters
    • 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
    • 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
    • Possible Options • OpenStreetMap.org (OSM) - map/tile data • Route-Me - OSS map view • Cloudemade.com - services around OSM • geocoder.us (among others)
    • Resources • MapKit Framework Reference - Apple • Using Map Kit with Bill Dudney - PragProg • Using Map Kit ... Bill Dudney - Wednesday
    • Thank You Julio Barros Julio@E-String.com http://www.E-String.com http://twitter.com/JulioBarros Also on Face book and Linked In