Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
Update 'RegionDefiner' sample (#330)
Browse files Browse the repository at this point in the history
* added new project

* updated viewcontroller

* add assets

* deleted the old

* updated output format + screenshots

* Update README.md
  • Loading branch information
mykyta-bondarenko authored and conceptdev committed Dec 7, 2018
1 parent 5778e39 commit 4f10108
Show file tree
Hide file tree
Showing 52 changed files with 754 additions and 455 deletions.
53 changes: 11 additions & 42 deletions RegionDefiner/README.md
@@ -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
26 changes: 13 additions & 13 deletions RegionDefiner/RegionDefiner.sln
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RegionDefiner", "RegionDefiner\RegionDefiner.csproj", "{FE9AAC77-AFB1-4ED8-9621-7C3A1C00D9B1}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RegionDefiner", "RegionDefiner\RegionDefiner.csproj", "{D2D5B9C5-CCF3-4905-97A3-43C0AC6244E2}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -13,18 +13,18 @@ Global
AppStore|iPhone = AppStore|iPhone
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{FE9AAC77-AFB1-4ED8-9621-7C3A1C00D9B1}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone
{FE9AAC77-AFB1-4ED8-9621-7C3A1C00D9B1}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone
{FE9AAC77-AFB1-4ED8-9621-7C3A1C00D9B1}.AppStore|iPhone.ActiveCfg = AppStore|iPhone
{FE9AAC77-AFB1-4ED8-9621-7C3A1C00D9B1}.AppStore|iPhone.Build.0 = AppStore|iPhone
{FE9AAC77-AFB1-4ED8-9621-7C3A1C00D9B1}.Debug|iPhone.ActiveCfg = Debug|iPhone
{FE9AAC77-AFB1-4ED8-9621-7C3A1C00D9B1}.Debug|iPhone.Build.0 = Debug|iPhone
{FE9AAC77-AFB1-4ED8-9621-7C3A1C00D9B1}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
{FE9AAC77-AFB1-4ED8-9621-7C3A1C00D9B1}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
{FE9AAC77-AFB1-4ED8-9621-7C3A1C00D9B1}.Release|iPhone.ActiveCfg = Release|iPhone
{FE9AAC77-AFB1-4ED8-9621-7C3A1C00D9B1}.Release|iPhone.Build.0 = Release|iPhone
{FE9AAC77-AFB1-4ED8-9621-7C3A1C00D9B1}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
{FE9AAC77-AFB1-4ED8-9621-7C3A1C00D9B1}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
{D2D5B9C5-CCF3-4905-97A3-43C0AC6244E2}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
{D2D5B9C5-CCF3-4905-97A3-43C0AC6244E2}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
{D2D5B9C5-CCF3-4905-97A3-43C0AC6244E2}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
{D2D5B9C5-CCF3-4905-97A3-43C0AC6244E2}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
{D2D5B9C5-CCF3-4905-97A3-43C0AC6244E2}.Debug|iPhone.ActiveCfg = Debug|iPhone
{D2D5B9C5-CCF3-4905-97A3-43C0AC6244E2}.Debug|iPhone.Build.0 = Debug|iPhone
{D2D5B9C5-CCF3-4905-97A3-43C0AC6244E2}.Release|iPhone.ActiveCfg = Release|iPhone
{D2D5B9C5-CCF3-4905-97A3-43C0AC6244E2}.Release|iPhone.Build.0 = Release|iPhone
{D2D5B9C5-CCF3-4905-97A3-43C0AC6244E2}.Ad-Hoc|iPhone.ActiveCfg = Release|iPhone
{D2D5B9C5-CCF3-4905-97A3-43C0AC6244E2}.Ad-Hoc|iPhone.Build.0 = Release|iPhone
{D2D5B9C5-CCF3-4905-97A3-43C0AC6244E2}.AppStore|iPhone.ActiveCfg = Release|iPhone
{D2D5B9C5-CCF3-4905-97A3-43C0AC6244E2}.AppStore|iPhone.Build.0 = Release|iPhone
EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
StartupItem = RegionDefiner\RegionDefiner.csproj
Expand Down
46 changes: 15 additions & 31 deletions RegionDefiner/RegionDefiner/AppDelegate.cs
@@ -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;
}
}
}

0 comments on commit 4f10108

Please sign in to comment.