<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: iPhone MapKit&#8230;</title>
	<atom:link href="http://fasterkittycodecode.com/coding/iphone-mapkit/feed/" rel="self" type="application/rss+xml" />
	<link>http://fasterkittycodecode.com/coding/iphone-mapkit/</link>
	<description>Wendy dev/blog</description>
	<lastBuildDate>Sun, 27 Dec 2009 16:26:14 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: andrew</title>
		<link>http://fasterkittycodecode.com/coding/iphone-mapkit/comment-page-1/#comment-402</link>
		<dc:creator>andrew</dc:creator>
		<pubDate>Tue, 11 Aug 2009 18:00:09 +0000</pubDate>
		<guid isPermaLink="false">http://fasterkittycodecode.com/?p=107#comment-402</guid>
		<description>Do you know that you can use your own image for an annotation?  You need to check out the delegate methods for the mapview...

- (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id )annotation {
	
	MKAnnotationView *thisAnnotationView = [ [ MKAnnotationView alloc ] initWithAnnotation:annotation reuseIdentifier:@&quot;whateverIdentifier&quot; ];
	thisAnnotationView.image = [ UIImage imageNamed:@&quot;whateverImage.png&quot; ];
/*
	CGPoint offsetPixels;
	offsetPixels.x = 11;
	offsetPixels.y = -thisAnnotationView.image.size.height/2;
	thisAnnotationView.centerOffset = offsetPixels;
*/
	return thisAnnotationView;
}

This works perfectly...you&#039;ll notice I commented a section of code out.  I used that to center my image appropriately.  You&#039;ll need to do this since by default it centers the image on the point you want, and you&#039;ll want most images to be above the point.</description>
		<content:encoded><![CDATA[<p>Do you know that you can use your own image for an annotation?  You need to check out the delegate methods for the mapview&#8230;</p>
<p>- (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id )annotation {</p>
<p>	MKAnnotationView *thisAnnotationView = [ [ MKAnnotationView alloc ] initWithAnnotation:annotation reuseIdentifier:@&#8221;whateverIdentifier&#8221; ];<br />
	thisAnnotationView.image = [ UIImage imageNamed:@"whateverImage.png" ];<br />
/*<br />
	CGPoint offsetPixels;<br />
	offsetPixels.x = 11;<br />
	offsetPixels.y = -thisAnnotationView.image.size.height/2;<br />
	thisAnnotationView.centerOffset = offsetPixels;<br />
*/<br />
	return thisAnnotationView;<br />
}</p>
<p>This works perfectly&#8230;you&#8217;ll notice I commented a section of code out.  I used that to center my image appropriately.  You&#8217;ll need to do this since by default it centers the image on the point you want, and you&#8217;ll want most images to be above the point.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wendy</title>
		<link>http://fasterkittycodecode.com/coding/iphone-mapkit/comment-page-1/#comment-251</link>
		<dc:creator>Wendy</dc:creator>
		<pubDate>Tue, 23 Jun 2009 03:07:47 +0000</pubDate>
		<guid isPermaLink="false">http://fasterkittycodecode.com/?p=107#comment-251</guid>
		<description>I may put together some info on the mapping code I ended up writing.</description>
		<content:encoded><![CDATA[<p>I may put together some info on the mapping code I ended up writing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dean Baldwin</title>
		<link>http://fasterkittycodecode.com/coding/iphone-mapkit/comment-page-1/#comment-250</link>
		<dc:creator>Dean Baldwin</dc:creator>
		<pubDate>Mon, 22 Jun 2009 21:17:09 +0000</pubDate>
		<guid isPermaLink="false">http://fasterkittycodecode.com/?p=107#comment-250</guid>
		<description>I don&#039;t suppose you would be willing to release some of your &quot;work in progress&quot;. I have been playing with the mapkit and completely agree about the pins.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t suppose you would be willing to release some of your &#8220;work in progress&#8221;. I have been playing with the mapkit and completely agree about the pins.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
