Joomla Platform
13.1
Documentation des API du framework Joomla Platform
|
Fonctions membres publiques | |
__construct (JRegistry $options=null, JUri $uri=null, JHttp $http=null) | |
getKey () | |
setKey ($key) | |
getMapID () | |
setMapID ($id) | |
getMapClass () | |
setMapClass ($class) | |
getMapStyle () | |
setMapStyle ($style) | |
getMapType () | |
setMapType ($type) | |
getAdditionalMapOptions () | |
setAdditionalMapOptions ($options) | |
getAdditionalJavascript () | |
setAdditionalJavascript ($script) | |
getZoom () | |
setZoom ($zoom) | |
getCenter () | |
setCenter ($location, $title=true, $markeroptions=array()) | |
addMarker ($location, $title=null, $options=array()) | |
listMarkers () | |
deleteMarker ($index=null) | |
isAsync () | |
useAsync () | |
useSync () | |
getAsyncCallback () | |
setAsyncCallback ($callback) | |
hasSensor () | |
useSensor () | |
noSensor () | |
getAutoload () | |
setAutoload ($type= 'onload') | |
getHeader () | |
getBody () | |
geocodeAddress ($address) | |
Fonctions membres publiques inherited from JGoogleEmbed | |
__construct (JRegistry $options=null, JUri $uri=null) | |
isSecure () | |
echoHeader () | |
echoBody () | |
getOption ($key) | |
setOption ($key, $value) |
Attributs protégés | |
$http | |
Attributs protégés inherited from JGoogleEmbed | |
$options | |
$uri |
Constructor.
JRegistry | $options | Google options object |
JUri | $uri | URL of the page being rendered |
JHttp | $http | Http client for geocoding requests |
Définition à la ligne 37 du fichier maps.php.
JGoogleEmbedMaps::addMarker | ( | $location, | |
$title = null , |
|||
$options = array() |
|||
) |
Add a marker to the map
mixed | $location | A latitude longitude array or an address string |
mixed | $title | The hover-text for the marker |
array | $options | Options for marker |
Définition à la ligne 331 du fichier maps.php.
JGoogleEmbedMaps::deleteMarker | ( | $index = null | ) |
Delete a marker from the map
int | $index | Index of marker to delete (defaults to last added marker) |
Définition à la ligne 385 du fichier maps.php.
JGoogleEmbedMaps::geocodeAddress | ( | $address | ) |
Method to get the location information back from an address
string | $address | The address to geocode |
Définition à la ligne 675 du fichier maps.php.
JGoogleEmbedMaps::getAdditionalJavascript | ( | ) |
JGoogleEmbedMaps::getAdditionalMapOptions | ( | ) |
JGoogleEmbedMaps::getAsyncCallback | ( | ) |
JGoogleEmbedMaps::getAutoload | ( | ) |
JGoogleEmbedMaps::getBody | ( | ) |
Method to retrieve the div that the map is loaded into
Réimplémentée à partir de JGoogleEmbed.
Définition à la ligne 643 du fichier maps.php.
JGoogleEmbedMaps::getCenter | ( | ) |
JGoogleEmbedMaps::getHeader | ( | ) |
Get code to load Google Maps javascript
Réimplémentée à partir de JGoogleEmbed.
Définition à la ligne 550 du fichier maps.php.
JGoogleEmbedMaps::getKey | ( | ) |
JGoogleEmbedMaps::getMapClass | ( | ) |
JGoogleEmbedMaps::getMapID | ( | ) |
JGoogleEmbedMaps::getMapStyle | ( | ) |
JGoogleEmbedMaps::getMapType | ( | ) |
JGoogleEmbedMaps::getZoom | ( | ) |
JGoogleEmbedMaps::hasSensor | ( | ) |
JGoogleEmbedMaps::isAsync | ( | ) |
JGoogleEmbedMaps::listMarkers | ( | ) |
JGoogleEmbedMaps::noSensor | ( | ) |
JGoogleEmbedMaps::setAdditionalJavascript | ( | $script | ) |
Method to add additional javascript
array | $script | Additional javascript |
JGoogleEmbedMaps::setAdditionalMapOptions | ( | $options | ) |
Method to add additional map options
array | $options | Additional map options |
JGoogleEmbedMaps::setAsyncCallback | ( | $callback | ) |
Method to set the callback function for async javascript loading
string | $callback | The callback function name |
JGoogleEmbedMaps::setAutoload | ( | $type = 'onload' | ) |
Automatically add the callback to the window
string | $type | The method to add the callback (options are onload, jquery, mootools, and false) |
JGoogleEmbedMaps::setCenter | ( | $location, | |
$title = true , |
|||
$markeroptions = array() |
|||
) |
Method to set the center of the map
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 |
Définition à la ligne 290 du fichier maps.php.
JGoogleEmbedMaps::setKey | ( | $key | ) |
Method to set the API key
string | $key | The Google Maps API key |
JGoogleEmbedMaps::setMapClass | ( | $class | ) |
Method to set the map div class
string | $class | The class |
JGoogleEmbedMaps::setMapID | ( | $id | ) |
Method to set the map div id
string | $id | The ID |
JGoogleEmbedMaps::setMapStyle | ( | $style | ) |
Method to set the map div style
string | $style | The style |
JGoogleEmbedMaps::setMapType | ( | $type | ) |
Method to set the map type ()
string | $type | Valid types are ROADMAP, SATELLITE, HYBRID, and TERRAIN |
JGoogleEmbedMaps::setZoom | ( | $zoom | ) |
Method to set the map zoom
int | $zoom | Zoom level (0 is whole world) |
JGoogleEmbedMaps::useAsync | ( | ) |
JGoogleEmbedMaps::useSensor | ( | ) |
JGoogleEmbedMaps::useSync | ( | ) |