Skip to content

birdview with QuartCore #8

@mateosoleasoft

Description

@mateosoleasoft

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions