On Apr 10, 2014, at 2:53 PM, Aaron Antrim <
aa...@trilliumtransit.com> wrote:
>
> Hello Transit Developers!
>
> You may be familiar with this problem. Showing overlapping transit routes in "slippy maps" cover each other, and it is hard to see all the routes and a full view of the system.
Aaron,
I do not know if this is helpful at all, but you reminded me of a question I once asked the MapKit folks when I was at Apple's WWDC (I lost the lottery this year ... 19 consecutive WWDCs, this year would have been my 20th anniversary).
Anywho, I said that I was drawing a polyline on a map view from GTFS data, but wanted to know what the best way would be to offset that polyline, given that transit lines often overlap (Chicago Loop, in my case). I was especially concerned because of the way Apple rescales map views when a user zooms in/out of a view (I couldn't, say, fudge the latitudes and longitudes of the polylines to offset them because that won't scale).
The clever answer I got from Apple was to apply an affine transform to the drawing layer as I was in the process of drawing the polyline. That way, when a user zooms in/out, the polylines remain offset a number of points from one another in a consistent way. Dunno if you can do the same thing ... but I thought I'd throw it out there. :)