GoogleMapsOverlayiOS icon indicating copy to clipboard operation
GoogleMapsOverlayiOS copied to clipboard

birdview with QuartCore

Open mateosoleasoft opened this issue 13 years ago • 0 comments

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;

mateosoleasoft avatar Oct 10 '12 10:10 mateosoleasoft