You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Per fab65e7#commitcomment-11046360, the MapChangeWillStartRenderingMap and MapChangeDidFinishRenderingMap notification types are meant to drive delegate callbacks which have parity with Apple's MapKit. These callbacks are meant to relate to the visual appearance of render, not anything frame-based, so that common iOS post-view-load techniques can be employed.
Capturing a snapshot of a fully-rendered complex view for use with Core Image/blur filters for view transition effects.
Not presenting the map view until it's completely tiled in (we've had requests for this before from partners for raster use cases).
Determining when an incomplete map view might be shown, but no more attempts to load anything will be happening (fullyRendered: NO).
The map view calls this method when one or more tiles are revealed and require rendering.
[...]
This method lets you know when the map view finishes rendering all of the currently visible tiles to the best of its ability. This method is called regardless of whether all tiles were rendered successfully. If there were errors loading one or more tiles that prevented map view from rendering them, the fullyRendered parameter is set to NO.
Calling these sorts of methods per-frame is not useful to users, either, because any work done in there will impact the render frame rate.
If we need additional callbacks such as something like MapChangeDidRenderFrame, we should make and use them instead, optionally also exporting them to Cocoa.
@friedbunny, if you're after region change notifications, I think you wanted #1026. This ticket is about rendering notifications.
Now, as far as I can tell, b1 never sent *RenderingMap notifications, and b2 sends them but with non-MapKit semantics. @incanus, is this what you meant by regressing?
bab66c1 lays some groundwork and bd901d2 rationalizes *RenderingMap -- but not in the way we want. I'll probably rename these notifications to *RenderingFrame as suggested above, and then work on notifications with the MapKit semantics.
What remains unimplemented is support for fullyRendered:NO -- we currently do not surface tile errors in a way that made this easy to implement, so I'm punting for now.
Activity
Merge pull request #1380 from mapbox/benchmark
incanus commentedon May 5, 2015
Per chat we are moving this to b2 and not updating anything else around delegates — known bug that they no longer work like MapKit.
incanus commentedon Jun 1, 2015
This is a regression currently from b1 to b2.
friedbunny commentedon Jun 24, 2015
Seeing
isChangingstill firing afterdidChange:^ zoom; lat, long
friedbunny commentedon Jun 24, 2015
Tapping on the map also triggers an
isChangingnotification. (And onlyisChanging.)jfirebaugh commentedon Jun 26, 2015
@friedbunny, if you're after region change notifications, I think you wanted #1026. This ticket is about rendering notifications.
Now, as far as I can tell, b1 never sent
*RenderingMapnotifications, and b2 sends them but with non-MapKit semantics. @incanus, is this what you meant by regressing?bab66c1 lays some groundwork and bd901d2 rationalizes
*RenderingMap-- but not in the way we want. I'll probably rename these notifications to*RenderingFrameas suggested above, and then work on notifications with the MapKit semantics.jfirebaugh commentedon Jun 30, 2015
Done in 6532438.
What remains unimplemented is support for
fullyRendered:NO-- we currently do not surface tile errors in a way that made this easy to implement, so I'm punting for now.