Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

dev2dev/PTMapView

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Using PTMapView

Add files PTMapView.h and PTMapView.m into your project

Put NSView on you form

Set NSView class to PTMapView

Set outlet in controller IBOutlet PTMapView *mapView

Import class import "PTMapView.h"

Prepare view mapView.dataSource = self; mapView.delegate = self;

mapView.backgroundColor = [NSColor whiteColor];
mapView.textColor = [NSColor blackColor];
mapView.color = [NSColor orangeColor];

Add method for data source protocol - (NSNumber *)valueForCountry:(NSString *)code { return [NSNumber numberWithInt:random() % 100]; }

code - country code in ISA format (uppercase)

Draw map [mapView draw];

Enjoy!

PTMapView

About

Cocoa class for draw world map like in Google Analytics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.