On Feb 21, 2011, at 21:49:55, Achim Breidenbach wrote: > Hi Rick, > > with the Google API you can provide those coordinates for a line or a path. > Google will draw it for you at the right place. > > http://code.google.com/apis/maps/documentation/staticmaps/#Paths
The problem with that approach is that I end up loading the image many times, as I animate the line growing. > On problem with the approach drawing the lines by your own is, that you don't > know the lat/long rectangle Google is using in its image. So you can't match > your path long/lat coordinates with the Google map image easily. That's okay. I know how to do the map projection, and I think I can figure out how to scale it properly. But possibly not. An alternative would be to write a custom patch to render a web view, and draw the line in javascript using the Google Maps API. Bleh. Hopefully Apple will come out with a native map rendering kit for Cocoa that downloads map data and renders it locally. Although, in my case, I want a satellite view. -- Rick > > best, > > Achim Breidenbach > Boinx Software > > On 22.02.2011, at 01:23, Rick Mann wrote: > >> Thanks to Steve Mokris, I now know how to get a Google Map image and render >> it. >> >> Now I need to render a line over that image. I have lat & lon that I can >> project onto the Google Map segment such that I have x- and y-coordinates >> scaled to the image. But how do I draw arbitrary stuff? With each frame, I >> need to draw a polyline. >> >> Any suggestions? >> >> Thanks! >> >> -- >> Rick >> >> _______________________________________________ >> Do not post admin requests to the list. They will be ignored. >> Quartzcomposer-dev mailing list (Quartzcomposer-dev@lists.apple.com) >> Help/Unsubscribe/Update your Subscription: >> http://lists.apple.com/mailman/options/quartzcomposer-dev/achim%40boinx.com >> >> This email sent to ac...@boinx.com > _______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list (Quartzcomposer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com