forked from digitick/yii-jquery-gmap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEGmap3MapOptions.php
More file actions
198 lines (194 loc) · 5.3 KB
/
Copy pathEGmap3MapOptions.php
File metadata and controls
198 lines (194 loc) · 5.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
<?php
/**
* EGmap3 Yii extension
*
* Object oriented PHP interface to GMAP3 Javascript library for
* Google Maps.
*
* @copyright © Digitick <www.digitick.net> 2011
* @license GNU Lesser General Public License v3.0
* @author Ianaré Sévi
*
*/
/**
* General map options.
* @author Ianaré Sévi
*/
class EGmap3MapOptions extends EGmap3OptionBase
{
/**
* @var string Color used for the background of the Map div.
*
* This color will be visible when tiles have not yet loaded as the user pans.
*/
public $backgroundColor;
/**
* @var array The initial Map center. Required.
*/
public $center;
/**
* @var boolean Enables/disables all default UI.
* May be overridden individually.
*/
public $disableDefaultUI;
/**
* @var boolean Enables/disables zoom and center on double click.
* Enabled by default.
*/
public $disableDoubleClickZoom;
/**
* @var boolean If false, prevents the map from being dragged. Dragging is
* enabled by default.
*/
public $draggable;
/**
* @var string The name or url of the cursor to display on a draggable object.
*/
public $draggableCursor;
/**
* @var string The name or url of the cursor to display when an object is
* dragging.
*/
public $draggingCursor;
/**
* @var integer The heading for aerial imagery in degrees measured
* clockwise from cardinal direction North.
*
* Headings are snapped to the nearest available angle for which imagery is
* available.
*/
public $heading;
/**
* @var boolean If false, prevents the map from being controlled by the keyboard.
* Keyboard shortcuts are enabled by default.
*/
public $keyboardShortcuts;
/**
* @var boolean The initial enabled/disabled state of the Map type control.
*/
public $mapTypeControl;
/**
* @var EGmap3MapTypeControlOptions The initial display options for the Map
* type control.
*/
public $mapTypeControlOptions;
/**
* @var string The initial Map mapTypeId. Required.
*
* One of 'EGmap3MApTypeId::HYBRID', 'EGmap3MApTypeId::ROADMAP',
* 'EGmap3MApTypeId::SATELLITE', 'EGmap3MApTypeId::TERRAIN'
*/
public $mapTypeId;
/**
* @var integer The maximum zoom level which will be displayed on the map.
* If null, the maximum zoom from the current map type is used instead.
*/
public $maxZoom;
/**
* @var integer The minimum zoom level which will be displayed on the map.
* If null, the minimum zoom from the current map type is used instead.
*/
public $minZoom;
/**
* @var boolean If true, do not clear the contents of the Map div.
*/
public $noClear;
/**
* @var boolean The enabled/disabled state of the Overview Map control.
*/
public $overviewMapControl;
/**
* @var EGmap3OverviewMapControlOptions The display options for the
* Overview Map control.
*/
public $overviewMapControlOptions;
/**
* @var boolean The enabled/disabled state of the Pan control.
*/
public $panControl;
/**
* @var EGmap3PanControlOptions The display options for the Pan control.
*/
public $panControlOptions;
/**
* @var boolean The enabled/disabled state of the Rotate control.
*/
public $rotateControl;
/**
* @var EGmap3RotateControlOptions The display options for the Rotate
* control.
*/
public $rotateControlOptions;
/**
* @var boolean The initial enabled/disabled state of the Scale control.
*/
public $scaleControl;
/**
* @var EGmap3ScaleControlOptions The initial display options for the Scale control.
*/
public $scaleControlOptions;
/**
* @var boolean If false, disables scrollwheel zooming on the map.
* Enabled by default.
*/
public $scrollwheel;
/**
* @var EGmap3StreetViewPanorama A StreetViewPanorama to display when the
* Street View pegman is dropped on the map. If no panorama is specified,
* a default StreetViewPanorama will be displayed in the map's div when the
* pegman is dropped.
*/
public $streetView;
/**
* @var boolean The initial enabled/disabled state of the Street View
* Pegman control.
*/
public $streetViewControl;
/**
* @var EGmap3StreetViewControlOptions The initial display options for the
* Street View Pegman control.
*/
public $streetViewControlOptions;
/**
* @var integer The angle of incidence of the map as measured in degrees
* from the viewport plane to the map plane.
*
* The only currently supported values are 0, indicating no angle of
* incidence (no tilt), and 45, indicating a tilt of 45°. 45° imagery is
* only available for SATELLITE and HYBRID map types, within some
* locations, and at some zoom levels.
*/
public $tilt;
/**
* @var integer The initial Map zoom level.
*/
public $zoom;
/**
* @var boolean The enabled/disabled state of the Zoom control.
*/
public $zoomControl;
/**
* @var EGmap3ZoomControlOptions The display options for the Zoom control.
*/
public $zoomControlOptions;
public function getOptionChecks()
{
return array(
'center' => 'array',
'mapTypeId' => array(
EGmap3MApTypeId::HYBRID,
EGmap3MApTypeId::ROADMAP,
EGmap3MApTypeId::SATELLITE,
EGmap3MApTypeId::TERRAIN,
),
'mapTypeControlOptions' => 'class',
'overviewMapControlOptions' => 'class',
'panControlOptions' => 'class',
'rotateControlOptions' => 'class',
'scaleControlOptions' => 'class',
'streetView' => 'class:EGmap3StreetViewPanorama',
'streetViewControlOptions' => 'class',
'zoomControlOptions' => 'class'
);
}
}