PHP 클래스 dosamigos\google\maps\Map

저자: Antonio Ramirez ([email protected])
상속: extends dosamigos\google\maps\ObjectAbstract
파일 보기 프로젝트 열기: 2amigos/yii2-google-maps-library 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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() 보호된 메소드

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