Skip to content
This repository was archived by the owner on Aug 25, 2023. It is now read-only.
This repository was archived by the owner on Aug 25, 2023. It is now read-only.

Black area when using 3D maps #35

Closed

Description

@KrauseFx

When using MKMapCamera to enable the 3D mode of the map, some areas are shown black: https://www.dropbox.com/s/l12tcgm5018kif7/Screenshot%202014-02-06%2023.10.59.png

This is due to trying to load a tile with the zoom level of 20 or great. Is there any way to get a lower quality image instead?

What I tried

  • Maximum zoom level by listening to map events: Does not work properly due to the 3D mode
  • Call the completion block of -loadTileAtPath:result: with nil and error, which results in a white space instead
  • Don't call the completion block at at, which results in a white space

I guess it would be possible to calculate the x and y coordinate of the tile of the previous zoom level, which might be complicated and expensive for the device?

Activity

  1. KrauseFx commented on Feb 6, 2014

    @KrauseFx
    ContributorAuthor

    @wsnook Thanks for your response.
    Apple handles this problem fine, the server seem to just respond with the correct tiles (lower quality, but at least valid tile images)

    You can easily try it with the default map app, where you can zoom in to a very high level and still see valid images.

    I understand MBXMapKit just extends MKMapView and implements a few methods that take care of downloading and caching the tiles.

    So, the download part has to fixed either on the server by returning valid images (which would take a lot of time to deploy) or by fixing it in the iOS code, like calculating which tile was used one zoom level above and just stretching it to fit.

  2. added this to the 0.3.0 milestone on Feb 21, 2014
  3. ghost closed this as completedon Mar 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions