-
Notifications
You must be signed in to change notification settings - Fork 6
/
EGmap3InfoWindowOptions.php
58 lines (56 loc) · 1.84 KB
/
EGmap3InfoWindowOptions.php
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
<?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
*
*/
/**
* Info window options.
* @link http://code.google.com/intl/fr/apis/maps/documentation/javascript/reference.html#InfoWindowOptions
*/
class EGmap3InfoWindowOptions extends EGmap3OptionBase
{
/**
* @var string Content to display in the InfoWindow. This can be an HTML element,
* a plain-text string, or a string containing HTML. The InfoWindow will be
* sized according to the content. To set an explicit size for the content,
* set content to be a HTML element with that size.
*/
public $content;
/**
* @var boolean Disable auto-pan on open. By default, the info window will pan the map
* so that it is fully visible when it opens.
*/
public $disableAutoPan;
/**
* @var integer Maximum width of the infowindow, regardless of content's width.
*/
public $maxWidth;
/**
* @var EGmap3Size The offset, in pixels, of the tip of the info window from
* the point on the map at whose geographical coordinates the info window
* is anchored. If an InfoWindow is opened with an anchor, the pixelOffset
* will be calculated from the top-center of the anchor's bounds.
*/
public $pixelOffset;
/**
* @var integer All InfoWindows are displayed on the map in order of their zIndex,
* with higher values displaying in front of InfoWindows with lower values.
* By default, InfoWinodws are displayed according to their latitude, with
* InfoWindows of lower latitudes appearing in front of InfoWindows at
* higher latitudes. InfoWindows are always displayed in front of markers.
*/
public $zIndex;
public function getOptionChecks()
{
return array(
'pixelOffset' => 'size',
);
}
}