PHP Class dosamigos\google\maps\Map

Author: Antonio Ramirez ([email protected])
Inheritance: extends dosamigos\google\maps\ObjectAbstract
Afficher le fichier Open project: 2amigos/yii2-google-maps-library Class Usage Examples

Méthodes publiques

Свойство Type Description
$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.

Méthodes publiques

Méthode Description
__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 )

Méthodes protégées

Méthode Description
getClosureScopedVariablesScript ( ) : string

Method Details

__construct() public méthode

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

addOverlay() public méthode

public addOverlay ( $overlay )
$overlay

appendScript() public méthode

public appendScript ( $js )
$js

display() public méthode

public display ( ) : string
Résultat string

getBoundsFromCenterAndZoom() public méthode

public getBoundsFromCenterAndZoom ( ) : dosamigos\google\maps\LatLngBounds
Résultat dosamigos\google\maps\LatLngBounds

getCenter() public méthode

public getCenter ( ) : mixed
Résultat mixed

getClosureScopedVariable() public méthode

public getClosureScopedVariable ( $name ) : mixed
$name
Résultat mixed

getClosureScopedVariables() public méthode

public getClosureScopedVariables ( ) : array
Résultat array

getClosureScopedVariablesScript() protected méthode

protected getClosureScopedVariablesScript ( ) : string
Résultat string

getJs() public méthode

public getJs ( ) : string
Résultat string

getMarkers() public méthode

public getMarkers ( ) : array
Résultat array

getMarkersCenterCoordinates() public méthode

public getMarkersCenterCoordinates ( ) : dosamigos\google\maps\LatLng | null
Résultat dosamigos\google\maps\LatLng | null

getMarkersFittingZoom() public méthode

public getMarkersFittingZoom ( integer $margin, integer $default = 14 ) : integer
$margin integer
$default integer
Résultat integer

getMarkersForUrl() public méthode

public getMarkersForUrl ( ) : string
Résultat string

getOverlays() public méthode

public getOverlays ( ) : array
Résultat array

getPlugins() public méthode

public getPlugins ( ) : dosamigos\google\maps\PluginManager
Résultat dosamigos\google\maps\PluginManager

getStaticMapUrl() public méthode

public getStaticMapUrl ( string $maptype = 'mobile', string $hl = 'es' ) : string
$maptype string
$hl string
Résultat string

init() public méthode

public init ( )

installPlugin() public méthode

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

registerClientScript() public méthode

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

removePlugin() public méthode

Removes an installed plugin
public removePlugin ( $plugin ) : mixed | null
$plugin
Résultat mixed | null

renderContainer() public méthode

public renderContainer ( ) : string
Résultat string

setCenter() public méthode

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

setClosureScopedVariable() public méthode

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

Property Details

$containerOptions public_oe property

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

$height public_oe property

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

$width public_oe property

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