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

birdview with QuartCore #8

Open
mateosoleasoft opened this issue Oct 10, 2012 · 0 comments
Open

birdview with QuartCore #8

mateosoleasoft opened this issue Oct 10, 2012 · 0 comments

Comments

@mateosoleasoft
Copy link

Congratulations for your code.

I would lik to apply 2.5D effect (birdview) to the map (see code below) with quartz core lib.

It works fine with ios6 mapview but not when i add TileOverlay.

Any idea why?

CATransform3D perspectiveTransform = CATransform3DIdentity;

CGFloat m34;
CGFloat rotation;
CGFloat scale;

m34 = 1.0 / -1400;
rotation = 60.0f;
scale = 1.6;

perspectiveTransform.m34 = m34;
perspectiveTransform = CATransform3DRotate(perspectiveTransform, rotation * M_PI / 180.0f, 1.0f, 0.0f, 0.0f);

CATransform3D scaleTransform = CATransform3DMakeScale (scale, scale, 1.0);
CATransform3D combinedTransform = CATransform3DConcat(perspectiveTransform, scaleTransform);

mapView.layer.transform = combinedTransform;

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