Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
58 lines (56 sloc) 1.84 KB
<?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',
);
}
}