PlugInProvider

Extends \AdGrafik\GoogleMapsPHP\MapBuilder\AbstractMapBuilder

This class initialize the MapBuilder and manage the JSON output.

author

Arno Dudek

api

Methods

initializeObject

initializeObject() : void

Set bounds

setBounds(mixed $bounds) : \AdGrafik\GoogleMapsPHP\MapBuilder\MapBuilderInterface

Get bounds

getBounds() : \AdGrafik\GoogleMapsPHP\API\Base\LatLngBounds

Set viewportManagement

setViewportManagement(boolean $viewportManagement) : \AdGrafik\GoogleMapsPHP\MapBuilder\MapBuilderInterface

Arguments

$viewportManagement

boolean

Response

\AdGrafik\GoogleMapsPHP\MapBuilder\MapBuilderInterface

Get viewportManagement

isViewportManagement() : boolean

Response

boolean

printJavaScriptJsonObject

printJavaScriptJsonObject() : string
inherited

Response

string

sendJson

sendJson() : string

Response

string

__toString

__toString() : string

Response

string

Constructor MapBuilder( [$mapId] [, $options] );

__construct(mixed $mapId = '', mixed $options = array()) 
inherited

Arguments

$mapId

mixed

$options

mixed

Can be an object of type \AdGrafik\GoogleMapsPHP\API\Map\MapOptions or an map options array.

Set settings

setSettings(\AdGrafik\GoogleMapsPHP\Configuration\Settings $settings) : \AdGrafik\GoogleMapsPHP\MapBuilder\MapBuilderInterface
inherited

Get settings

getSettings() : \AdGrafik\GoogleMapsPHP\Configuration\Settings
inherited

Set view

setView(\AdGrafik\GoogleMapsPHP\View\Document $view) : \AdGrafik\GoogleMapsPHP\MapBuilder\MapBuilderInterface
inherited

Arguments

$view

\AdGrafik\GoogleMapsPHP\View\Document

Response

\AdGrafik\GoogleMapsPHP\MapBuilder\MapBuilderInterface

Get view

getView() : \AdGrafik\GoogleMapsPHP\View\ViewInterface
inherited

Set mapId

setMapId(string $mapId) : \AdGrafik\GoogleMapsPHP\MapBuilder\MapBuilderInterface
inherited

Get mapId

getMapId() : string
inherited

Response

string

Set mapOptions

setMapOptions(array $mapOptions) : \AdGrafik\GoogleMapsPHP\MapBuilder\MapBuilderInterface
inherited

Arguments

$mapOptions

array

Response

\AdGrafik\GoogleMapsPHP\MapBuilder\MapBuilderInterface

Get mapOptions

getMapOptions() : array
inherited

Response

array

Set jsonObject

setJsonObject(\AdGrafik\GoogleMapsPHP\MapBuilder\JsonObject $jsonObject) : \AdGrafik\GoogleMapsPHP\PlugInProvider
inherited

Get jsonObject

getJsonObject() : \AdGrafik\GoogleMapsPHP\MapBuilder\JsonObject
inherited

Add a plug-in.

add(string|array|\AdGrafik\GoogleMapsPHP\PlugIns\PlugInInterface $plugInBuilderName) : \AdGrafik\GoogleMapsPHP\MapBuilder\MapBuilderInterface
inherited

Set debug

setDebug(boolean $debug) : \AdGrafik\GoogleMapsPHP\MapBuilder\MapBuilderInterface
inherited

Arguments

$debug

boolean

Response

\AdGrafik\GoogleMapsPHP\MapBuilder\MapBuilderInterface

Get debug

isDebug() : boolean
inherited

Response

boolean

registerMapId

registerMapId(string $mapId) : void
inherited
throws

Arguments

$mapId

string

Properties

bounds

bounds : \AdGrafik\GoogleMapsPHP\API\Base\LatLngBounds

viewportManagement

viewportManagement : boolean
var

Type(s)

boolean

mapIdCount

mapIdCount : integer
inherited static
var

Type(s)

integer

registeredMapIds

registeredMapIds : array
inherited static
var

Type(s)

array

settings

settings : \AdGrafik\GoogleMapsPHP\Configuration\Settings
inherited

view

view : \AdGrafik\GoogleMapsPHP\View\ViewInterface
inherited

mapId

mapId : string
inherited
var

Type(s)

string

mapOptions

mapOptions : array
inherited
var

Type(s)

array

jsonObject

jsonObject : \AdGrafik\GoogleMapsPHP\MapBuilder\JsonObject
inherited