PHP Класс dosamigos\google\maps\Map

Автор: Antonio Ramirez ([email protected])
Наследование: extends dosamigos\google\maps\ObjectAbstract
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$containerOptions the HTML attributes for the layer that will render the map.
$height the height in pixels or percent of the container holding the map.
$width the width in pixels or percent of the container holding the map.

Открытые методы

Метод Описание
__construct ( array $config = [] )
addOverlay ( $overlay )
appendScript ( $js )
display ( ) : string
getBoundsFromCenterAndZoom ( ) : dosamigos\google\maps\LatLngBounds
getCenter ( ) : mixed
getClosureScopedVariable ( $name ) : mixed
getClosureScopedVariables ( ) : array
getJs ( ) : string
getMarkers ( ) : array
getMarkersCenterCoordinates ( ) : dosamigos\google\maps\LatLng | null
getMarkersFittingZoom ( integer $margin, integer $default = 14 ) : integer
getMarkersForUrl ( ) : string
getOverlays ( ) : array
getPlugins ( ) : dosamigos\google\maps\PluginManager
getStaticMapUrl ( string $maptype = 'mobile', string $hl = 'es' ) : string
init ( )
installPlugin ( dosamigos\google\maps\PluginAbstract $plugin ) Installs a plugin
registerClientScript ( integer $position = View::POS_END )
removePlugin ( $plugin ) : mixed | null Removes an installed plugin
renderContainer ( ) : string
setCenter ( dosamigos\google\maps\LatLng $coord )
setClosureScopedVariable ( $name, null $value = null )

Защищенные методы

Метод Описание
getClosureScopedVariablesScript ( ) : string

Описание методов

__construct() публичный метод

public __construct ( array $config = [] )
$config array

addOverlay() публичный метод

public addOverlay ( $overlay )
$overlay

appendScript() публичный метод

public appendScript ( $js )
$js

display() публичный метод

public display ( ) : string
Результат string

getBoundsFromCenterAndZoom() публичный метод

public getBoundsFromCenterAndZoom ( ) : dosamigos\google\maps\LatLngBounds
Результат dosamigos\google\maps\LatLngBounds

getCenter() публичный метод

public getCenter ( ) : mixed
Результат mixed

getClosureScopedVariable() публичный метод

public getClosureScopedVariable ( $name ) : mixed
$name
Результат mixed

getClosureScopedVariables() публичный метод

public getClosureScopedVariables ( ) : array
Результат array

getClosureScopedVariablesScript() защищенный метод

protected getClosureScopedVariablesScript ( ) : string
Результат string

getJs() публичный метод

public getJs ( ) : string
Результат string

getMarkers() публичный метод

public getMarkers ( ) : array
Результат array

getMarkersCenterCoordinates() публичный метод

public getMarkersCenterCoordinates ( ) : dosamigos\google\maps\LatLng | null
Результат dosamigos\google\maps\LatLng | null

getMarkersFittingZoom() публичный метод

public getMarkersFittingZoom ( integer $margin, integer $default = 14 ) : integer
$margin integer
$default integer
Результат integer

getMarkersForUrl() публичный метод

public getMarkersForUrl ( ) : string
Результат string

getOverlays() публичный метод

public getOverlays ( ) : array
Результат array

getPlugins() публичный метод

public getPlugins ( ) : dosamigos\google\maps\PluginManager
Результат dosamigos\google\maps\PluginManager

getStaticMapUrl() публичный метод

public getStaticMapUrl ( string $maptype = 'mobile', string $hl = 'es' ) : string
$maptype string
$hl string
Результат string

init() публичный метод

public init ( )

installPlugin() публичный метод

Installs a plugin
public installPlugin ( dosamigos\google\maps\PluginAbstract $plugin )
$plugin dosamigos\google\maps\PluginAbstract

registerClientScript() публичный метод

public registerClientScript ( integer $position = View::POS_END )
$position integer

removePlugin() публичный метод

Removes an installed plugin
public removePlugin ( $plugin ) : mixed | null
$plugin
Результат mixed | null

renderContainer() публичный метод

public renderContainer ( ) : string
Результат string

setCenter() публичный метод

public setCenter ( dosamigos\google\maps\LatLng $coord )
$coord dosamigos\google\maps\LatLng

setClosureScopedVariable() публичный метод

public setClosureScopedVariable ( $name, null $value = null )
$name
$value null

Описание свойств

$containerOptions публичное свойство

the HTML attributes for the layer that will render the map.
public $containerOptions

$height публичное свойство

the height in pixels or percent of the container holding the map.
public $height

$width публичное свойство

the width in pixels or percent of the container holding the map.
public $width