Migrating thread to mobile-l, with Ulf's permission.On Wed, Mar 18, 2015 at 11:29 PM, Ulf Buermeyer <ub2125@columbia.edu> wrote:
Hi all,
if you're deprecating iOS6 then the solution might be to just implement
[MKOverlay canReplaceMapContent]
and return YES. This effectively prevents iOS from loading Apple map
content:
https://developer.apple.com/library/ios/documentation/MapKit/Reference/MKOverlay_protocol/#//apple_ref/occ/intfm/MKOverlay/canReplaceMapContent
As for the MKTileOverlay, that would be an option as well, I'm just not
sure how efficient it is for caching OSM content - the documentation is
silent on that point:
https://developer.apple.com/library/prerelease/ios/documentation/MapKit/Reference/MKTileOverlay_class/index.html
And as I already have the drawing code we could go with that.
Best, Ulf
On 19/03/15 01:49, Adam Baso wrote:
> Oops, /now/ I'm CC'ing Max.
>
> On Wed, Mar 18, 2015 at 10:07 PM, Monte Hurd <mhurd@wikimedia.org
> <mailto:mhurd@wikimedia.org>> wrote:
>
> Ulf, I was also thinking we could maybe use a custom NSURLProtocol
> to intercept the MKMapView's requests for the apple map tiles
> (instead of a "overlay only" mode - would have the same effect I
> think). Thoughts?
>
>
> On Mar 18, 2015, at 8:45 PM, Adam Baso <abaso@wikimedia.org
> <mailto:abaso@wikimedia.org>> wrote:
>
>> Ulf,
>>
>> Great meeting you!
>>
>> Hi there - I was wondering if there was perhaps a way to make use
>> of MKTileOverlay for achieving these ends? We're going to be
>> deprecating iOS 6 in the relatively near future, and this is an
>> iOS 7+ thing.
>>
>> http://nshipster.com/mktileoverlay-mkmapsnapshotter-mkdirections/
>>
>> I've CC'd Max Semenik, who may have some insight into tiling
>> server options at Wikimedia.
>>
>> -Adam
>>
>> On Fri, Mar 13, 2015 at 3:13 PM, Monte Hurd <mhurd@wikimedia.org
>> <mailto:mhurd@wikimedia.org>> wrote:
>>
>> Good seeing you again as well Ulf!
>>
>> I'll check out the OpenRadar ticket and experiment some more
>> with your maps patch.
>>
>> Exciting stuff!!!
>>
>> On Wed, Mar 11, 2015 at 10:19 PM, Ulf Buermeyer
>> <ub2125@columbia.edu <mailto:ub2125@columbia.edu>> wrote:
>>
>>
>>
>> Hi,
>>
>> good to see you guys today! I just wanted to keep you
>> posted about that
>> maps issue. In fact I re-filed a rdar with Apple in order
>> to have them
>> add an "overlay only" mode to MKMapView today (the other
>> one had been
>> closed w/o any feedback). See my OpenRadar for this issue:
>>
>> http://www.openradar.me/20132462
>>
>>
>> For your reference here is the pull request I issued last
>> year (that's
>> effectively the code for what I showed to Moiz today):
>>
>> https://github.com/wikimedia/apps-ios-wikipedia/pull/3
>>
>> I'd be happy to work with you on a solution that complies with
>> Wikimedia's policies as I think that maps for articles or
>> even an
>> initial "places around you" feature with pins on a map
>> would be very
>> useful additions to the Wikipedia app.
>>
>> All the best, Ulf
_______________________________________________
Mobile-l mailing list
Mobile-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mobile-l