Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polyline view not shown on map #2

Open
fousa opened this issue Jan 14, 2012 · 3 comments
Open

Polyline view not shown on map #2

fousa opened this issue Jan 14, 2012 · 3 comments

Comments

@fousa
Copy link

fousa commented Jan 14, 2012

Hi,

I'm trying to implement overlays in my Mac application, but when I add an overlay I always get the "Error creating internal representation of overlay view for overlay: <MKPolyline: 0x1004c55e0>" error...

Do you have any idea what it means? Or how I can solve this?

Thanks a lot, great framework port by the way!!

@rickfillion
Copy link
Member

Can you send me the code you're trying to run to rick@oomphalot.com? I can take a look at it and hopefully fix what's wrong with the framework. At one point polylines worked. :)

@fousa
Copy link
Author

fousa commented Jan 26, 2012

I emailed you my project. I found a little workaround, but I don't think it's clean. I add the Overlay with a small delay of 0.3 seconds.

@rickfillion
Copy link
Member

The 'proper' workaround for this is to wait for the delegate call saying the map is loaded. The issue is that the map view won't handle calls properly until it has initialized gmaps properly. The delegate call signifies "gmaps is up, we're good to go."

The real fix for this is to queue up all calls prior to this then replay them when gmaps comes up. Implementable, but a bit of a pain, so I'm not tackling it yet (since the workaround is easy).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants