<?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>Kommentare zu: MapKit, Google Maps, iPhone and Drawing Routes or Polylines</title>
	<atom:link href="http://pixelfehler.nicolas-neubauer.de/2009/09/04/mapkit-google-maps-iphone-and-drawing-routes-or-polylines/feed/" rel="self" type="application/rss+xml" />
	<link>http://pixelfehler.nicolas-neubauer.de/2009/09/04/mapkit-google-maps-iphone-and-drawing-routes-or-polylines/</link>
	<description>oh, oh ... da ist einer ... puh, war doch nur staub ...</description>
	<lastBuildDate>Tue, 01 Jun 2010 22:51:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Von: The Navarra Group &#187; Blog Archive &#187; The definitive iPhone MapKit polyline example project</title>
		<link>http://pixelfehler.nicolas-neubauer.de/2009/09/04/mapkit-google-maps-iphone-and-drawing-routes-or-polylines/comment-page-1/#comment-2485</link>
		<dc:creator>The Navarra Group &#187; Blog Archive &#187; The definitive iPhone MapKit polyline example project</dc:creator>
		<pubDate>Thu, 01 Apr 2010 21:12:52 +0000</pubDate>
		<guid isPermaLink="false">http://pixelfehler.nicolas-neubauer.de/?p=416#comment-2485</guid>
		<description>[...] would disappear when the user is performing a zoom action on the map). Nicolas Neubauer later expanded upon Craig&#8217;s idea with the idea of hooking into the annotation view&#8217;s center property [...]</description>
		<content:encoded><![CDATA[<p>[...] would disappear when the user is performing a zoom action on the map). Nicolas Neubauer later expanded upon Craig&#8217;s idea with the idea of hooking into the annotation view&#8217;s center property [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Nicolas</title>
		<link>http://pixelfehler.nicolas-neubauer.de/2009/09/04/mapkit-google-maps-iphone-and-drawing-routes-or-polylines/comment-page-1/#comment-2192</link>
		<dc:creator>Nicolas</dc:creator>
		<pubDate>Sun, 28 Feb 2010 12:11:09 +0000</pubDate>
		<guid isPermaLink="false">http://pixelfehler.nicolas-neubauer.de/?p=416#comment-2192</guid>
		<description>I&#039;m not a lawyer so I don&#039;t know what exactly Apple is prohibiting. I understand that you are not allowed to draw routes on the internal MapKit Views for navigational purposes. Wherever your routing information comes from. I think OpenStreetMaps offers (free) possibilities to add routing information (and MapViews) to iPhone Applications but I didn&#039;t use those yet so I can&#039;t give you advice.</description>
		<content:encoded><![CDATA[<p>I&#8217;m not a lawyer so I don&#8217;t know what exactly Apple is prohibiting. I understand that you are not allowed to draw routes on the internal MapKit Views for navigational purposes. Wherever your routing information comes from. I think OpenStreetMaps offers (free) possibilities to add routing information (and MapViews) to iPhone Applications but I didn&#8217;t use those yet so I can&#8217;t give you advice.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: john</title>
		<link>http://pixelfehler.nicolas-neubauer.de/2009/09/04/mapkit-google-maps-iphone-and-drawing-routes-or-polylines/comment-page-1/#comment-2189</link>
		<dc:creator>john</dc:creator>
		<pubDate>Sun, 28 Feb 2010 10:39:42 +0000</pubDate>
		<guid isPermaLink="false">http://pixelfehler.nicolas-neubauer.de/?p=416#comment-2189</guid>
		<description>Thanks for the article. If Apple &amp; Google prohibits the use of their routinginformation is there any other known source where to get routinginformation from?

Cloudmade is far way too expensive. Would apple accept an app with this kind of route? I think it depends on the &quot;day&quot;. taxometer just submitted an app using this technique. Mhh.</description>
		<content:encoded><![CDATA[<p>Thanks for the article. If Apple &amp; Google prohibits the use of their routinginformation is there any other known source where to get routinginformation from?</p>
<p>Cloudmade is far way too expensive. Would apple accept an app with this kind of route? I think it depends on the &#8220;day&#8221;. taxometer just submitted an app using this technique. Mhh.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Nicolas</title>
		<link>http://pixelfehler.nicolas-neubauer.de/2009/09/04/mapkit-google-maps-iphone-and-drawing-routes-or-polylines/comment-page-1/#comment-1886</link>
		<dc:creator>Nicolas</dc:creator>
		<pubDate>Mon, 08 Feb 2010 14:21:09 +0000</pubDate>
		<guid isPermaLink="false">http://pixelfehler.nicolas-neubauer.de/?p=416#comment-1886</guid>
		<description>If your &quot;underlying&quot; map view, as you said above, can&#039;t receive touch events, you&#039;re not using the approach I&#039;m describing in the blog post. In my (or Chris) approach you will not put anything above the maps view, you will only insert the routes as annotations and will not intercept any touch events. If you want to intercept touches you might want to use the delegation method for annotations (which I don&#039;t remember currently).
I&#039;d like to give you further advice but I think the basic problem is, that you are putting views above your map view which is (as I stated above in the blog entry) a bad idea if you want to archive fluid zooming and scrolling with animations.

Greetings,
Nicolas</description>
		<content:encoded><![CDATA[<p>If your &#8220;underlying&#8221; map view, as you said above, can&#8217;t receive touch events, you&#8217;re not using the approach I&#8217;m describing in the blog post. In my (or Chris) approach you will not put anything above the maps view, you will only insert the routes as annotations and will not intercept any touch events. If you want to intercept touches you might want to use the delegation method for annotations (which I don&#8217;t remember currently).<br />
I&#8217;d like to give you further advice but I think the basic problem is, that you are putting views above your map view which is (as I stated above in the blog entry) a bad idea if you want to archive fluid zooming and scrolling with animations.</p>
<p>Greetings,<br />
Nicolas</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: jacobms</title>
		<link>http://pixelfehler.nicolas-neubauer.de/2009/09/04/mapkit-google-maps-iphone-and-drawing-routes-or-polylines/comment-page-1/#comment-1831</link>
		<dc:creator>jacobms</dc:creator>
		<pubDate>Thu, 04 Feb 2010 11:58:42 +0000</pubDate>
		<guid isPermaLink="false">http://pixelfehler.nicolas-neubauer.de/?p=416#comment-1831</guid>
		<description>Hi,
thanks for your quick response :-)

It&#039;s hard to explain, but see the pics below. The black box is the area of the CSRouteView, i.e. also the view that receives the touch events (can&#039;t get the underlying internal map view to receive touches :-/):

&lt;a href=&quot;http://i47.tinypic.com/2qtcpie.png&quot; rel=&quot;nofollow&quot;&gt;Screen #1&lt;/a&gt; - initial view when app starts, my custom detect touch in polygon function works fine as the polygon (the green one) is inside the black area.

&lt;a href=&quot;http://i45.tinypic.com/25ptzxi.png&quot; rel=&quot;nofollow&quot;&gt;Screen #2&lt;/a&gt; - after a couple of zooms the black area suddenly seems to get close to the edge of the polygon (detection still works).

&lt;a href=&quot;http://i50.tinypic.com/2mzf5t.png&quot; rel=&quot;nofollow&quot;&gt;Screen #3&lt;/a&gt; - one more zoom and the polygon is no longer completely covered by the black area and thus doesn&#039;t receive touch-events in the non-black area.

For me I would think the black area should at screen #3 completely surround the screen as it should cover the same area on the map as screen #1.

Hope that explains it? :-)

Best and thanks for your quick response,
Jacob</description>
		<content:encoded><![CDATA[<p>Hi,<br />
thanks for your quick response <img src='http://pixelfehler.nicolas-neubauer.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>It&#8217;s hard to explain, but see the pics below. The black box is the area of the CSRouteView, i.e. also the view that receives the touch events (can&#8217;t get the underlying internal map view to receive touches :-/):</p>
<p><a href="http://i47.tinypic.com/2qtcpie.png" rel="nofollow">Screen #1</a> &#8211; initial view when app starts, my custom detect touch in polygon function works fine as the polygon (the green one) is inside the black area.</p>
<p><a href="http://i45.tinypic.com/25ptzxi.png" rel="nofollow">Screen #2</a> &#8211; after a couple of zooms the black area suddenly seems to get close to the edge of the polygon (detection still works).</p>
<p><a href="http://i50.tinypic.com/2mzf5t.png" rel="nofollow">Screen #3</a> &#8211; one more zoom and the polygon is no longer completely covered by the black area and thus doesn&#8217;t receive touch-events in the non-black area.</p>
<p>For me I would think the black area should at screen #3 completely surround the screen as it should cover the same area on the map as screen #1.</p>
<p>Hope that explains it? <img src='http://pixelfehler.nicolas-neubauer.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Best and thanks for your quick response,<br />
Jacob</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Nicolas</title>
		<link>http://pixelfehler.nicolas-neubauer.de/2009/09/04/mapkit-google-maps-iphone-and-drawing-routes-or-polylines/comment-page-1/#comment-1828</link>
		<dc:creator>Nicolas</dc:creator>
		<pubDate>Thu, 04 Feb 2010 09:55:03 +0000</pubDate>
		<guid isPermaLink="false">http://pixelfehler.nicolas-neubauer.de/?p=416#comment-1828</guid>
		<description>Hey,

I&#039;m not sure if I fully understand your problem. If your CSRouteView is an MKAnnotationView, setCenter: will be called when you move within the map. Also (I&#039;m not 100% sure about this since it has been quite long) it should be called when zooming so you would want to redraw your route on setCenter: to abuse this as a event-listener.

Hope this helps.

Nicolas</description>
		<content:encoded><![CDATA[<p>Hey,</p>
<p>I&#8217;m not sure if I fully understand your problem. If your CSRouteView is an MKAnnotationView, setCenter: will be called when you move within the map. Also (I&#8217;m not 100% sure about this since it has been quite long) it should be called when zooming so you would want to redraw your route on setCenter: to abuse this as a event-listener.</p>
<p>Hope this helps.</p>
<p>Nicolas</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: jacobms</title>
		<link>http://pixelfehler.nicolas-neubauer.de/2009/09/04/mapkit-google-maps-iphone-and-drawing-routes-or-polylines/comment-page-1/#comment-1820</link>
		<dc:creator>jacobms</dc:creator>
		<pubDate>Wed, 03 Feb 2010 23:26:15 +0000</pubDate>
		<guid isPermaLink="false">http://pixelfehler.nicolas-neubauer.de/?p=416#comment-1820</guid>
		<description>Hi,
did you ever end up doing an example project? I am having trouble with my CSRouteView (this is from the original code Craig provided) &quot;moving&quot; around when I zoom in. Rather, the physical area on the map covered initially is reduced as I zoom in and I have a feeling this might be what you&#039;re talking about. I tried overriding the setCenter and calling regionChanged (= your initRedraw), but that didn&#039;t help.

Thanks in advance!

Best,
Jacob</description>
		<content:encoded><![CDATA[<p>Hi,<br />
did you ever end up doing an example project? I am having trouble with my CSRouteView (this is from the original code Craig provided) &#8220;moving&#8221; around when I zoom in. Rather, the physical area on the map covered initially is reduced as I zoom in and I have a feeling this might be what you&#8217;re talking about. I tried overriding the setCenter and calling regionChanged (= your initRedraw), but that didn&#8217;t help.</p>
<p>Thanks in advance!</p>
<p>Best,<br />
Jacob</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Nicolas</title>
		<link>http://pixelfehler.nicolas-neubauer.de/2009/09/04/mapkit-google-maps-iphone-and-drawing-routes-or-polylines/comment-page-1/#comment-1047</link>
		<dc:creator>Nicolas</dc:creator>
		<pubDate>Mon, 21 Sep 2009 23:10:16 +0000</pubDate>
		<guid isPermaLink="false">http://pixelfehler.nicolas-neubauer.de/?p=416#comment-1047</guid>
		<description>Basicly, after having clearified that your MKAnnotationView and MKAnnotation are the same class it shoudn&#039;t matter... But I guess I&#039;ll go over the text again the next days. Looking forward to your project and glad that I could help ;)</description>
		<content:encoded><![CDATA[<p>Basicly, after having clearified that your MKAnnotationView and MKAnnotation are the same class it shoudn&#8217;t matter&#8230; But I guess I&#8217;ll go over the text again the next days. Looking forward to your project and glad that I could help <img src='http://pixelfehler.nicolas-neubauer.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Marcel</title>
		<link>http://pixelfehler.nicolas-neubauer.de/2009/09/04/mapkit-google-maps-iphone-and-drawing-routes-or-polylines/comment-page-1/#comment-1045</link>
		<dc:creator>Marcel</dc:creator>
		<pubDate>Mon, 21 Sep 2009 21:29:32 +0000</pubDate>
		<guid isPermaLink="false">http://pixelfehler.nicolas-neubauer.de/?p=416#comment-1045</guid>
		<description>Hi Nicolas

Thanks for the clarification. I just now managed to get it to work!

There are still a number of sentences where you refer to the MKAnnotation instead of MKAnnotationView, but hey, I got it to work, so what :-)

I&#039;ll send you the link as soon as I can.

Cheers
Marcel</description>
		<content:encoded><![CDATA[<p>Hi Nicolas</p>
<p>Thanks for the clarification. I just now managed to get it to work!</p>
<p>There are still a number of sentences where you refer to the MKAnnotation instead of MKAnnotationView, but hey, I got it to work, so what <img src='http://pixelfehler.nicolas-neubauer.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>I&#8217;ll send you the link as soon as I can.</p>
<p>Cheers<br />
Marcel</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Nicolas</title>
		<link>http://pixelfehler.nicolas-neubauer.de/2009/09/04/mapkit-google-maps-iphone-and-drawing-routes-or-polylines/comment-page-1/#comment-1040</link>
		<dc:creator>Nicolas</dc:creator>
		<pubDate>Mon, 21 Sep 2009 09:54:54 +0000</pubDate>
		<guid isPermaLink="false">http://pixelfehler.nicolas-neubauer.de/?p=416#comment-1040</guid>
		<description>Hi Marcel,

I guess I should have read the article again before publishing it. I made a mistake in the line that says &quot;Create your own MKAnnotationView subclass which follows the MKAnnotation Protocol, too.&quot;. In the original version it said MKAnnotation (without the view) twice, which is wrong of course.

What you do is create indeed an MKAnnotation**VIEW** subclass which also is an MKAnnotation itself. This class will get the custom UIView as subview you can draw your route on, this class can have a size of 0x0 (if it doesn&#039;t clip the just mentioned subview). And in this class you will overwrite setCenter:. Make sure you will add this custom MKAnnotationView to the annotations of the MKMapView and also (!) to return itself (as it is the view as well as the annotation) if the delegate get&#039;s asked for it.

Thank you for your feedback. I&#039;m looking forward to seeing your project and really would like to link it here, as is propably will help a lot more than my (a assume a bit cryptic) writing.

Best Regards,
Nicolas</description>
		<content:encoded><![CDATA[<p>Hi Marcel,</p>
<p>I guess I should have read the article again before publishing it. I made a mistake in the line that says &#8220;Create your own MKAnnotationView subclass which follows the MKAnnotation Protocol, too.&#8221;. In the original version it said MKAnnotation (without the view) twice, which is wrong of course.</p>
<p>What you do is create indeed an MKAnnotation**VIEW** subclass which also is an MKAnnotation itself. This class will get the custom UIView as subview you can draw your route on, this class can have a size of 0&#215;0 (if it doesn&#8217;t clip the just mentioned subview). And in this class you will overwrite setCenter:. Make sure you will add this custom MKAnnotationView to the annotations of the MKMapView and also (!) to return itself (as it is the view as well as the annotation) if the delegate get&#8217;s asked for it.</p>
<p>Thank you for your feedback. I&#8217;m looking forward to seeing your project and really would like to link it here, as is propably will help a lot more than my (a assume a bit cryptic) writing.</p>
<p>Best Regards,<br />
Nicolas</p>
]]></content:encoded>
	</item>
</channel>
</rss>
