|
| __construct (Registry $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(), $markerevents=array()) |
|
| addEventHandler ($type, $function) |
|
| deleteEventHandler ($type=null) |
|
| listEventHandlers () |
|
| addMarker ($location, $title=null, $options=array(), $events=array()) |
|
| listMarkers () |
|
| deleteMarker ($index=null) |
|
| isAsync () |
|
| useAsync () |
|
| useSync () |
|
| getAsyncCallback () |
|
| setAsyncCallback ($callback) |
|
| hasSensor () |
|
| useSensor () |
|
| noSensor () |
|
| getAutoload () |
|
| setAutoload ($type='onload') |
|
| getHeader () |
|
| getBody () |
|
| geocodeAddress ($address) |
|
| __construct (Registry $options=null, JUri $uri=null) |
|
| isSecure () |
|
| getHeader () |
|
| getBody () |
|
| echoHeader () |
|
| echoBody () |
|
| getOption ($key) |
|
| setOption ($key, $value) |
|
Google Maps embed class for the Joomla Platform.
- Depuis
- 3.1.4
- Obsolète:
- 4.0 Use the
joomla/google
package via Composer instead
◆ __construct()
Constructor.
- Paramètres
-
Registry | $options | Google options object |
JUri | $uri | URL of the page being rendered |
JHttp | $http | Http client for geocoding requests |
- Depuis
- 3.1.4
Références $options, et $uri.
◆ addEventHandler()
addEventHandler |
( |
|
$type, |
|
|
|
$function |
|
) |
| |
◆ addMarker()
addMarker |
( |
|
$location, |
|
|
|
$title = null , |
|
|
|
$options = array() , |
|
|
|
$events = array() |
|
) |
| |
◆ deleteEventHandler()
deleteEventHandler |
( |
|
$type = null | ) |
|
◆ deleteMarker()
deleteMarker |
( |
|
$index = null | ) |
|
Delete a marker from the map
- Paramètres
-
int | $index | Index of marker to delete (defaults to last added marker) |
- Renvoie
- array The latitude/longitude of the deleted marker
- Depuis
- 3.1.4
Références null.
◆ geocodeAddress()
geocodeAddress |
( |
|
$address | ) |
|
Method to get the location information back from an address
- Paramètres
-
string | $address | The address to geocode |
- Renvoie
- array An array containing Google's geocode data
- Depuis
- 3.1.4
Références $data, $key, et $uri.
◆ getAdditionalJavascript()
getAdditionalJavascript |
( |
| ) |
|
Method to get additional map options
- Renvoie
- string The options
- Depuis
- 3.1.4
◆ getAdditionalMapOptions()
getAdditionalMapOptions |
( |
| ) |
|
Method to get additional map options
- Renvoie
- string The options
- Depuis
- 3.1.4
◆ getAsyncCallback()
Method to get callback function for async javascript loading
- Renvoie
- string The ID
- Depuis
- 3.1.4
◆ getAutoload()
Checks how the script should be loaded
- Renvoie
- string Autoload type (onload, jquery, mootools, or false)
- Depuis
- 3.1.4
◆ getBody()
Method to retrieve the div that the map is loaded into
- Renvoie
- string The body
- Depuis
- 3.1.4
Références $class, $id, $output, et $style.
◆ getCenter()
Method to set the center of the map
- Renvoie
- mixed A latitude longitude array or an address string
- Depuis
- 3.1.4
◆ getHeader()
◆ getKey()
Method to get the API key
- Renvoie
- string The Google Maps API key
- Depuis
- 3.1.4
◆ getMapClass()
Method to get the class of the map div
- Renvoie
- string The class
- Depuis
- 3.1.4
◆ getMapId()
Method to get the id of the map div
- Renvoie
- string The ID
- Depuis
- 3.1.4
◆ getMapStyle()
Method to get the style of the map div
- Renvoie
- string The style
- Depuis
- 3.1.4
◆ getMapType()
Method to get the map type setting
- Renvoie
- string The class
- Depuis
- 3.1.4
◆ getZoom()
Method to get the zoom
- Renvoie
- int The zoom level
- Depuis
- 3.1.4
◆ hasSensor()
Checks if a sensor is set to be required
- Renvoie
- boolean True if asynchronous
- Depuis
- 3.1.4
Références false, et null.
◆ isAsync()
Checks if the javascript is set to be asynchronous
- Renvoie
- boolean True if asynchronous
- Depuis
- 3.1.4
Références null, et true.
◆ listEventHandlers()
List the events added to the map
- Renvoie
- array A list of events
- Depuis
- 3.1.4
◆ listMarkers()
List the markers added to the map
- Renvoie
- array A list of markers
- Depuis
- 3.1.4
◆ noSensor()
Don't require access to sensor data
- Renvoie
- JGoogleEmbedAMaps The object for method chaining
- Depuis
- 3.1.4
◆ setAdditionalJavascript()
setAdditionalJavascript |
( |
|
$script | ) |
|
Method to add additional javascript
- Paramètres
-
array | $script | Additional javascript |
- Renvoie
- JGoogleEmbedMaps The object for method chaining
- Depuis
- 3.1.4
Références $script.
◆ setAdditionalMapOptions()
setAdditionalMapOptions |
( |
|
$options | ) |
|
Method to add additional map options
- Paramètres
-
array | $options | Additional map options |
- Renvoie
- JGoogleEmbedMaps The object for method chaining
- Depuis
- 3.1.4
Références $options.
◆ setAsyncCallback()
setAsyncCallback |
( |
|
$callback | ) |
|
Method to set the callback function for async javascript loading
- Paramètres
-
string | $callback | The callback function name |
- Renvoie
- JGoogleEmbedMaps The object for method chaining
- Depuis
- 3.1.4
◆ setAutoload()
setAutoload |
( |
|
$type = 'onload' | ) |
|
Automatically add the callback to the window
- Paramètres
-
string | $type | The method to add the callback (options are onload, jquery, mootools, and false) |
- Renvoie
- JGoogleEmbedAMaps The object for method chaining
- Depuis
- 3.1.4
Références $type.
◆ setCenter()
setCenter |
( |
|
$location, |
|
|
|
$title = true , |
|
|
|
$markeroptions = array() , |
|
|
|
$markerevents = array() |
|
) |
| |
◆ setKey()
Method to set the API key
- Paramètres
-
string | $key | The Google Maps API key |
- Renvoie
- JGoogleEmbedMaps The object for method chaining
- Depuis
- 3.1.4
Références $key.
◆ setMapClass()
Method to set the map div class
- Paramètres
-
- Renvoie
- JGoogleEmbedMaps The object for method chaining
- Depuis
- 3.1.4
Références $class.
◆ setMapId()
Method to set the map div id
- Paramètres
-
- Renvoie
- JGoogleEmbedMaps The object for method chaining
- Depuis
- 3.1.4
Références $id.
◆ setMapStyle()
Method to set the map div style
- Paramètres
-
- Renvoie
- JGoogleEmbedMaps The object for method chaining
- Depuis
- 3.1.4
Références $style.
◆ setMapType()
Method to set the map type ()
- Paramètres
-
string | $type | Valid types are ROADMAP, SATELLITE, HYBRID, and TERRAIN |
- Renvoie
- JGoogleEmbedMaps The object for method chaining
- Depuis
- 3.1.4
Références $type.
◆ setZoom()
Method to set the map zoom
- Paramètres
-
int | $zoom | Zoom level (0 is whole world) |
- Renvoie
- JGoogleEmbedMaps The object for method chaining
- Depuis
- 3.1.4
◆ useAsync()
Load javascript asynchronously
- Renvoie
- JGoogleEmbedMaps The object for method chaining
- Depuis
- 3.1.4
◆ useSensor()
Require access to sensor data
- Renvoie
- JGoogleEmbedMaps The object for method chaining
- Depuis
- 3.1.4
◆ useSync()
Load javascript synchronously
- Renvoie
- JGoogleEmbedAMaps The object for method chaining
- Depuis
- 3.1.4
◆ $http
La documentation de cette classe a été générée à partir du fichier suivant :