You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+30-25Lines changed: 30 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
This component allows you to select circular map region from the MKMapView.
4
4
5
-

5
+

6
6
7
7
## Adding to your project
8
8
@@ -33,59 +33,64 @@ To use DBMapSelectorViewController in your project you should perform the follow
33
33
34
34
### Setting
35
35
36
-
To customize the selector you should set selector properties in the loadView method of your `MyViewController`. Selector properties must be set after execute `[super loadView];`. For example, how it can be implemented:
36
+
To customize the selector you should set selector properties in the `viewDidLoad` method of your `MyViewController`. Selector properties must be set after execute `[super viewDidLoad];`.
37
+
38
+
After you have set the `circleCoordinate` and `circleRadius` parameters manually you must execute `updateMapRegionForMapSelector` method.
-`DBMapSelectorEditingType selectorEditingType` - Used to specify the selector editing type. Property can equal one of four values:
59
+
-`DBMapSelectorEditingType editingType` - Used to specify the selector editing type. Property can equal one of four values:
55
60
-`DBMapSelectorEditingTypeFull` allows to edit coordinate and radius,
56
61
-`DBMapSelectorEditingTypeCoordinateOnly` allows to edit cooordinate only,
57
62
-`DBMapSelectorEditingTypeRadiusOnly` allows to edit radius only,
58
63
-`DBMapSelectorEditingTypeNone` read only mode;
59
-
-`CLLocationCoordinate2D selectorCoordinate` - Used to specify the selector coordinate;
60
-
-`CLLocationDistance selectorRadius` - Used to specify the selector radius. Default is equal 1000 meter;
61
-
-`CLLocationDistance selectorRadiusMin` - Used to specify the minimum selector radius. Default is equal 100 meter;
62
-
-`CLLocationDistance selectorRadiusMax` - Used to specify the maximum selector radius. Default is equal 10000 meter;
63
-
-`BOOL selectorHidden` - Used to hide or show selector. Default is NO;
64
-
-`UIColor *selectorFillColor` - Used to specify the selector fill color. Color is used to fill the circular map region;
65
-
-`UIColor *selectorStrokeColor` - Used to specify the selector stroke color. Color is used to delimit the circular map region.
64
+
-`CLLocationCoordinate2D circleCoordinate` - Used to specify the selector coordinate;
65
+
-`CLLocationDistance circleRadius` - Used to specify the selector radius. Default is equal 1000 meter;
66
+
-`CLLocationDistance circleRadiusMin` - Used to specify the minimum selector radius. Default is equal 100 meter;
67
+
-`CLLocationDistance circleRadiusMax` - Used to specify the maximum selector radius. Default is equal 10000 meter;
68
+
-`BOOL hidden` - Used to hide or show selector. Default is NO;
69
+
-`UIColor *fillColor` - Used to specify the selector fill color. Color is used to fill the circular map region;
70
+
-`UIColor *strokeColor` - Used to specify the selector stroke color. Color is used to delimit the circular map region.
66
71
67
-
### DBMapSelectorViewControllerProtocol
72
+
### DBMapSelectorViewControllerDelegate
68
73
69
-
Inside the `DBMapSelectorViewController` class is implemented `DBMapSelectorViewControllerProtocol`. It's allows to receive messages when the main properties (coordinate and radius) of the selector will be changed.
74
+
To be able to react when the main properties (coordinate and radius) of the selector will be changed you must become delegate DBMapSelectorViewController. DBMapSelectorViewControllerDelegate protocol you can see here:
You can implement these methods in your `MyViewController` class in order to respond to these changes. For example, how it can be implemented in your class:
0 commit comments