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

MKPolylineView lineWidth should zoom #32

Open
LucasDeVil opened this issue Mar 12, 2013 · 0 comments
Open

MKPolylineView lineWidth should zoom #32

LucasDeVil opened this issue Mar 12, 2013 · 0 comments

Comments

@LucasDeVil
Copy link

Hi there,

I encountered an issue I'm unable to fix...
I'd like to have the line width of an MKPolylineView to scale according to the map zoom.
So the larger I zoom the map the thicker the line should get.

Example: I have a track between 2 CLLocations which is 11m long. I want to set the width of this track to 11m and draw this track on the map.

Now this track should be shown as a kind of a square, since its width is as big as its length.
When I'm zooming the lines length will grow and the line width should grow, too.
But it doesn't.

How am I able to implement this behaviour?
Since there is no -(void)drawMapRect:(MKMapRect)mapRect zoomScale:(MKZoomScale)zoomScale inContext:(CGContextRef)context as mentioned in the documentation for MKMapKit I have no clue how to handle this.
(please take issue #19 for reference)

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

1 participant