Google/Maps/BaseMap.php

Classes 
author
Vítor Brandão <noisebleed@noiselabs.org>
category
NoiseLabs
copyright
(C) 2011 Vítor Brandão <noisebleed@noiselabs.org>
package
Google
version
0.1.1
Classes
BaseMap

Description

This file is part of NoiseLabs-PHP-ToolKit

NoiseLabs-PHP-ToolKit is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

NoiseLabs-PHP-ToolKit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with NoiseLabs-PHP-ToolKit; if not, see http://www.gnu.org/licenses/.

Copyright (C) 2011 Vítor Brandão noisebleed@noiselabs.org

NoiseLabs\ToolKit\Google\Maps\BaseMap

Implements
NoiseLabs\ToolKit\Google\Maps\MapInterface
see
https://github.com/kriswallsmith/GoogleBundle
Properties
$id
$markers
$parameters
$options
$https
Methods
__construct
getOptionsDefaults
setId
getId
hasMarkers
hasMarker
addMarker
removeMarker
setMarkers
getMarkers
create

Description

GoogleMaps base class (abstract).

Inspired by a GoogleMaps implementation made by tirnanog06.

Properties

$https

 $https = 'false'

Details

visibility
public
default
false
final
false
static
false

$id

string $id = ''

An unique ID to identify this map, useful when manipulating an array of maps. This is also used as the ID for the <div> element.

Details

$id
string
visibility
protected
default
final
false
static
false

$markers

 $markers = 'array'

A collection of map markers. Each element of the array should be an object of type Marker.

Details

visibility
protected
default
array
final
false
static
false

$options

\NoiseLabs\ToolKit\ParameterBag $options = ''

GoogleMaps configuration. This covers settings like zoom level to the usage of HTTPS.

Details

$options
\NoiseLabs\ToolKit\ParameterBag
visibility
public
default
final
false
static
false

$parameters

\NoiseLabs\ToolKit\ParameterBag $parameters = ''

A set of parameters to append to configure how the Maps JavaScript API is loaded.

Details

$parameters
\NoiseLabs\ToolKit\ParameterBag
visibility
public
default
final
false
static
false

Methods

__construct

__construct(  $id = map,  $options = array,  $parameters = array ) :

Arguments
$id
$options
$parameters
Details
visibility
public
final
false
static
false

addMarker

addMarker(  $marker ) :
Arguments
$marker
Details
visibility
public
final
false
static
false

create

create( ) :
Details
visibility
public
final
false
static
true

getId

getId( ) :
Details
visibility
public
final
false
static
false

getMarkers

getMarkers( ) :
Details
visibility
public
final
false
static
false

getOptionsDefaults

getOptionsDefaults( ) :
Details
visibility
protected
final
false
static
false

hasMarker

hasMarker(  $marker ) :
Arguments
$marker
Details
visibility
public
final
false
static
false

hasMarkers

hasMarkers( ) :
Details
visibility
public
final
false
static
false

removeMarker

removeMarker(  $marker ) :
Arguments
$marker
Details
visibility
public
final
false
static
false

setId

setId(  $id ) :
Arguments
$id
Details
visibility
public
final
false
static
false

setMarkers

setMarkers(  $markers ) :
Arguments
$markers
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.