This repository has been archived by the owner on Apr 29, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update 'RegionDefiner' sample (#330)
* added new project * updated viewcontroller * add assets * deleted the old * updated output format + screenshots * Update README.md
- Loading branch information
1 parent
5778e39
commit 4f10108
Showing
52 changed files
with
754 additions
and
455 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 |
---|---|---|
@@ -1,51 +1,20 @@ | ||
RegionDefiner | ||
============= | ||
|
||
This is a MonoTouch port of the WWDC2012 sample of the same name | ||
showing how to get around with MapKit. | ||
|
||
Description: | ||
============ | ||
|
||
This sample is an example to generate GeoJSON coverage files for use | ||
with the Maps routing apps API. | ||
|
||
|
||
RegionDefiner | ||
============= | ||
|
||
Sample app opens with MapView, Reset and Log Button. | ||
|
||
On longpressing any point on the map an annotation is added as pin | ||
point with map coordinate information. A multipolygon is defined when | ||
3 or more pinpoints are added to the map. On pressing reset button, | ||
the annotations and region defined are erased. Log button logs the | ||
coordinate information. Logs can be checked in Device Log. | ||
|
||
|
||
Packaging List: | ||
|
||
AppDelegate | ||
- A basic UIApplication delegate which sets up the application. | ||
|
||
ViewController | ||
- A UIViewController subclass which shows a map | ||
|
||
MyAnnotation | ||
- Represents a point on the map | ||
|
||
Changes From Previous Version: | ||
|
||
Version 1.0 | ||
- First version. | ||
|
||
Ported By: GouriKumari | ||
|
||
|
||
|
||
This is a MonoTouch port of the WWDC2012 sample of the same name showing how to get around with MapKit. | ||
This sample is an example to generate GeoJSON coverage files for use with the Maps routing apps API. | ||
|
||
Build Requirements | ||
------- | ||
|
||
Xamarin.iOS 9.0 and above. | ||
|
||
License | ||
------- | ||
|
||
Xamarin port changes are released under the MIT license. | ||
|
||
Author | ||
------ | ||
|
||
Ported to Xamarin.iOS by Gouri Kumari |
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 |
---|---|---|
@@ -1,37 +1,21 @@ | ||
using System; | ||
using Foundation; | ||
using Foundation; | ||
using UIKit; | ||
|
||
namespace RegionDefiner | ||
{ | ||
[Register ("AppDelegate")] | ||
public partial class AppDelegate : UIApplicationDelegate | ||
{ | ||
UIWindow window; | ||
RegionDefinerViewController viewController; | ||
// The UIApplicationDelegate for the application. This class is responsible for launching the | ||
// User Interface of the application, as well as listening (and optionally responding) to application events from iOS. | ||
[Register("AppDelegate")] | ||
public class AppDelegate : UIApplicationDelegate | ||
{ | ||
public override UIWindow Window { get; set; } | ||
|
||
public override bool FinishedLaunching (UIApplication app, NSDictionary options) | ||
{ | ||
window = new UIWindow (UIScreen.MainScreen.Bounds); | ||
|
||
viewController = new RegionDefinerViewController (); | ||
window.RootViewController = viewController; | ||
window.MakeKeyAndVisible (); | ||
|
||
return true; | ||
} | ||
|
||
static void Main (string[] args) | ||
{ | ||
// if you want to use a different Application Delegate class from "AppDelegate" | ||
// you can specify it here. | ||
UIApplication.Main (args, null, "AppDelegate"); | ||
} | ||
|
||
public override UIInterfaceOrientationMask GetSupportedInterfaceOrientations (UIApplication application, UIWindow forWindow) | ||
{ | ||
return UIInterfaceOrientationMask.Portrait; | ||
} | ||
} | ||
} | ||
public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) | ||
{ | ||
// Override point for customization after application launch. | ||
// If not required for your application you can safely delete this method | ||
|
||
return true; | ||
} | ||
} | ||
} |
Oops, something went wrong.