ArthurGuibert / FSInteractiveMap

A charting library to visualize and interact with a vector map on iOS. It's like Geochart but for iOS!
Apache License 2.0
551 stars 80 forks source link

Is that possible to add a text on each state ? #15

Open davamp opened 6 years ago

aman198 commented 5 years ago

// CGFloat vert = CGRectGetMidY(scaled.bounds) / CGRectGetHeight(scaled.bounds);

// text.anchorPoint = CGPointMake(0.5, vert ); // text.alignmentMode = kCAAlignmentCenter; text.foregroundColor = [[UIColor blackColor] CGColor];

    [shapeLayer addSublayer:text];

    [self.layer addSublayer:shapeLayer];
    [_scaledPaths addObject:scaled];
}

}