This class initialize the MapBuilder and manage the JSON output.
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
Get viewportManagement
isViewportManagement() : boolean
printJavaScriptJsonObject
printJavaScriptJsonObject() : string
inherited
sendJson
sendJson() : string
__toString
__toString() : string
Constructor
MapBuilder( [$mapId] [, $options] );
__construct(mixed $mapId = '', mixed $options = array())
inherited
Arguments
$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
Get view
getView() : \AdGrafik\GoogleMapsPHP\View\ViewInterface
inherited
Set mapId
setMapId(string $mapId) : \AdGrafik\GoogleMapsPHP\MapBuilder\MapBuilderInterface
inherited
Get mapId
getMapId() : string
inherited
Set mapOptions
setMapOptions(array $mapOptions) : \AdGrafik\GoogleMapsPHP\MapBuilder\MapBuilderInterface
inherited
Get mapOptions
getMapOptions() : array
inherited
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
Get debug
isDebug() : boolean
inherited
registerMapId
registerMapId(string $mapId) : void
inherited
Properties
bounds
bounds : \AdGrafik\GoogleMapsPHP\API\Base\LatLngBounds
viewportManagement
viewportManagement : boolean
mapIdCount
mapIdCount : integer
inherited static
registeredMapIds
registeredMapIds : array
inherited static
settings
settings : \AdGrafik\GoogleMapsPHP\Configuration\Settings
inherited
view
view : \AdGrafik\GoogleMapsPHP\View\ViewInterface
inherited
mapId
mapId : string
inherited
mapOptions
mapOptions : array
inherited
jsonObject
jsonObject : \AdGrafik\GoogleMapsPHP\MapBuilder\JsonObject
inherited