Add a marker to the map
mixed
addMarker
(mixed $location, [mixed $title = null], [array $options = array()])
-
mixed
$location: A latitude longitude array or an address string
-
mixed
$title: The hover-text for the marker
-
array
$options: Options for marker
Delete a marker from the map
array
deleteMarker
([int $index = null])
-
int
$index: Index of marker to delete (defaults to last added marker)
Method to get the location information back from an address
array
geocodeAddress
(string $address)
-
string
$address: The address to geocode
Method to get additional map options
string
getAdditionalJavascript
()
Method to get additional map options
string
getAdditionalMapOptions
()
Method to get callback function for async javascript loading
string
getAsyncCallback
()
Checks how the script should be loaded
string
getAutoload
()
Method to retrieve the div that the map is loaded into
string
getBody
()
Redefinition of:
- JGoogleEmbed::getBody()
- Method to retrieve the body for the API
Method to set the center of the map
mixed
getCenter
()
Get code to load Google Maps javascript
string
getHeader
()
Redefinition of:
- JGoogleEmbed::getHeader()
- Method to retrieve the header for the API
Method to get the API key
string
getKey
()
Method to get the class of the map div
string
getMapClass
()
Method to get the id of the map div
string
getMapID
()
Method to get the style of the map div
string
getMapStyle
()
Method to get the map type setting
string
getMapType
()
Method to get the zoom
int
getZoom
()
Checks if a sensor is set to be required
boolean
hasSensor
()
Checks if the javascript is set to be asynchronous
boolean
isAsync
()
List the markers added to the map
array
listMarkers
()
Don't require access to sensor data
JGoogleEmbedAMaps
noSensor
()
Method to add additional javascript
-
array
$script: Additional javascript
Method to add additional map options
-
array
$options: Additional map options
Method to set the callback function for async javascript loading
-
string
$callback: The callback function name
Automatically add the callback to the window
JGoogleEmbedAMaps
setAutoload
([string $type = 'onload'])
-
string
$type: The method to add the callback (options are onload, jquery, mootools, and false)
Method to set the center of the map
JGoogleEmbedMaps
setCenter
(
mixed $location, [
mixed $title =
true], [
array $markeroptions =
array()])
-
mixed
$location: A latitude/longitude array or an address string
-
mixed
$title: Title of marker or false for no marker
-
array
$markeroptions: Options for marker
Method to set the API key
-
string
$key: The Google Maps API key
Method to set the map div class
Method to set the map div id
Method to set the map div style
Method to set the map type ()
-
string
$type: Valid types are ROADMAP, SATELLITE, HYBRID, and TERRAIN
Method to set the map zoom
-
int
$zoom: Zoom level (0 is whole world)
Load javascript asynchronously
Require access to sensor data
Load javascript synchronously
JGoogleEmbedAMaps
useSync
()
Inherited Methods
Inherited From JGoogleEmbed
JGoogleEmbed::__construct()
JGoogleEmbed::echoBody()
JGoogleEmbed::echoHeader()
JGoogleEmbed::getBody()
JGoogleEmbed::getHeader()
JGoogleEmbed::getOption()
JGoogleEmbed::isSecure()
JGoogleEmbed::setOption()