This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
599 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,6 @@ | |
config.gypi | ||
config.mk | ||
.DS_Store | ||
out | ||
mapnik-packaging | ||
*.xcodeproj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>en</string> | ||
<key>CFBundleDisplayName</key> | ||
<string>${PRODUCT_NAME}</string> | ||
<key>CFBundleExecutable</key> | ||
<string>${EXECUTABLE_NAME}</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>com.mapbox.llmr.native</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>${PRODUCT_NAME}</string> | ||
<key>CFBundlePackageType</key> | ||
<string>APPL</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>0.0.1</string> | ||
<key>CFBundleSignature</key> | ||
<string>LLMR</string> | ||
<key>CFBundleVersion</key> | ||
<string>0.0.1</string> | ||
<key>LSRequiresIPhoneOS</key> | ||
<true/> | ||
<key>UIRequiredDeviceCapabilities</key> | ||
<array> | ||
<string>armv7</string> | ||
</array> | ||
<key>UISupportedInterfaceOrientations</key> | ||
<array> | ||
<string>UIInterfaceOrientationPortrait</string> | ||
<string>UIInterfaceOrientationLandscapeLeft</string> | ||
<string>UIInterfaceOrientationLandscapeRight</string> | ||
</array> | ||
<key>UISupportedInterfaceOrientations~ipad</key> | ||
<array> | ||
<string>UIInterfaceOrientationPortrait</string> | ||
<string>UIInterfaceOrientationPortraitUpsideDown</string> | ||
<string>UIInterfaceOrientationLandscapeLeft</string> | ||
<string>UIInterfaceOrientationLandscapeRight</string> | ||
</array> | ||
<key>NSHumanReadableCopyright</key> | ||
<string>(c) 2014 Mapbox</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// MBXAppDelegate.h | ||
// ios | ||
// | ||
// Created by Justin R. Miller on 1/27/14. | ||
// | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
@interface MBXAppDelegate : UIResponder <UIApplicationDelegate> | ||
|
||
@property (strong, nonatomic) UIWindow *window; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// | ||
// MBXAppDelegate.m | ||
// ios | ||
// | ||
// Created by Justin R. Miller on 1/27/14. | ||
// | ||
// | ||
|
||
#import "MBXAppDelegate.h" | ||
|
||
#import "MBXViewController.h" | ||
|
||
@implementation MBXAppDelegate | ||
|
||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | ||
{ | ||
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; | ||
self.window.rootViewController = [MBXViewController new]; | ||
[self.window makeKeyAndVisible]; | ||
|
||
return YES; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// | ||
// MBXSettings.hpp | ||
// llmr | ||
// | ||
// Created by Justin R. Miller on 1/27/14. | ||
// | ||
// | ||
|
||
#import <llmr/map/settings.hpp> | ||
|
||
namespace llmr | ||
{ | ||
class Settings_iOS : public Settings | ||
{ | ||
public: | ||
Settings_iOS(); | ||
virtual void save(); | ||
virtual void load(); | ||
virtual void clear(); | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
// | ||
// MBXSettings.cpp | ||
// llmr | ||
// | ||
// Created by Justin R. Miller on 1/27/14. | ||
// | ||
// | ||
|
||
#import "MBXSettings.h" | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
using namespace llmr; | ||
|
||
Settings_iOS::Settings_iOS() { | ||
NSDictionary *appDefaults = [NSDictionary dictionaryWithObjectsAndKeys: | ||
|
||
// position | ||
[NSNumber numberWithDouble:longitude], @"longitude", | ||
[NSNumber numberWithDouble:latitude], @"latitude", | ||
[NSNumber numberWithDouble:scale], @"scale", | ||
[NSNumber numberWithDouble:angle], @"angle", | ||
|
||
// debug | ||
[NSNumber numberWithBool:debug], @"debug", | ||
|
||
nil | ||
]; | ||
|
||
[[NSUserDefaults standardUserDefaults] registerDefaults:appDefaults]; | ||
} | ||
|
||
void Settings_iOS::load() { | ||
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; | ||
|
||
// position | ||
longitude = [defaults doubleForKey:@"longitude"]; | ||
latitude = [defaults doubleForKey:@"latitude"]; | ||
scale = [defaults doubleForKey:@"scale"]; | ||
angle = [defaults doubleForKey:@"angle"]; | ||
|
||
// debug | ||
debug = [defaults boolForKey:@"debug"]; | ||
} | ||
|
||
void Settings_iOS::save() { | ||
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; | ||
|
||
NSDictionary *appDefaults = [NSDictionary dictionaryWithObjectsAndKeys: | ||
|
||
// position | ||
[NSNumber numberWithDouble:longitude], @"longitude", | ||
[NSNumber numberWithDouble:latitude], @"latitude", | ||
[NSNumber numberWithDouble:scale], @"scale", | ||
[NSNumber numberWithDouble:angle], @"angle", | ||
|
||
// debug | ||
[NSNumber numberWithBool:debug], @"debug", | ||
|
||
nil | ||
]; | ||
// [defaults setPersistentDomain:appDefaults forName:[[NSBundle mainBundle] bundleIdentifier]]; | ||
|
||
// [defaults synchronize]; | ||
} | ||
|
||
void Settings_iOS::clear() { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// | ||
// MBXViewController.h | ||
// ios | ||
// | ||
// Created by Justin R. Miller on 1/27/14. | ||
// | ||
// | ||
|
||
#import <GLKit/GLKit.h> | ||
#import <UIKit/UIKit.h> | ||
|
||
@interface MBXViewController : GLKViewController | ||
|
||
@end |
Oops, something went wrong.