Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8887051
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:42:38+00:00 2026-06-14T21:42:38+00:00

I’m developing an app where I want to show fictional planes flying from and

  • 0

I’m developing an app where I want to show fictional planes flying from and to airports. This may not be the only things that I want to represent flying through the map.

For this I used the sample code from LocationReminders (the MKOverlayPathView subclass they have, ReminderCircleView) and connected it to an MKOverlay of my own representing the plane. This class subscribes for KVO notifications on the coordinate and radius properties of the overlay class and invalidates its path everytime there’s an update.

The overlay updates its position at several frames per second and I also update it’s radius so I can simulate perspective (not very smart considering it’s an model object but still the best solution I’ve found).

I’m using a simple circle path for testing.

This setup works fine. The overlay view gets updated and it behaves correctly, scaling along with the map and all.

The problem is that in a simulated flight the overlay won’t be drawn over some of the tiles, normally near the destination. The circle looks like is going behind these tiles.

I was able to understand one thing in this problem: whenever I observe the circle not being drawn over some tile if I zoom out the circle will be drawn correctly. Zooming in or panning doesn’t solve anything however.

My theory is that some of the tiles (or their map rects) are not being marked for redrawing and so, only by zooming out I can force that. But still I think that’s not consistent with the fact that zooming in doesn’t seem to help.

I don’t know if I’m doing anything wrong or if I’m bumping into a bug or something. I’ve used annotations instead and it was working but with that I lose the ability to represent a plane that gets smaller if you zoom out without observing the zoom scale myself.

I’ve tested in versions 5.1, 6.0 and 6.1 and the behavior is the same.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T21:42:39+00:00Added an answer on June 14, 2026 at 9:42 pm

    I have understood what was causing that behavior.

    On my MKOverlay I was changing the boundingMapRect to match the position of the plane at every position update.
    Actually the MKMapView only asks the MKOverlay for it in the beginning (I got to know this by checking the calls to -(BOOL)intersectsMapRect:(MKMapRect)mapRect).

    As a test I changed the boundingMapRect to match the whole world (boundingMapRect = MKMapRectWorld;) and it worked. Then it was only a matter of creating a MKMapRect around the path of my plane and that was it.

    Well, Apple states the following regarding boundingMapRect:

    The projected rectangle that encompasses the overlay. (required) (read-only)
    This property contains the smallest rectangle that completely encompasses the overlay area. Implementers of this protocol must set this area when implementing their overlay class. The rectangle should be specified using projected coordinates—that is, coordinates obtained by projecting the globe onto a two-dimensional surface.

    And I’d say something like:

    The projected rectangle that encompasses the overlay. (required) (read-only)
    This property contains the smallest rectangle that completely encompasses the area that the overlay can be presented in. Implementers of this protocol must set this area when implementing their overlay class. The rectangle should be specified using projected coordinates—that is, coordinates obtained by projecting the globe onto a two-dimensional surface.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For some reason, after submitting a string like this Jack’s Spindle from a text
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I want to show the soap response to UIWebview.. my soap response is, <p><img
Does anyone know how can I replace this 2 symbol below from the string
I'm not entirely sure how I managed to jack this up. http://pretty-senshi.com If you
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
this is what i have right now Drawing an RSS feed into the php,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.