class CMapping


Located at : UKNOWVA_ROOT/components/com_community/libraries/mapping.php

Constants

GEOCODE_URL

STATICMAP_URL

Methods

getAddressData($address)

Fetch google map data refere to http://code.google.com/apis/maps/documentation/geocoding/#Geocoding

validateAddress($address)

Given a string address, we will try to validate and see if google think it is allright

drawStaticMap($address, $width, $height)

Return the code that will generate static map if width is '0', then it will draw at 100% width

static 
drawZoomableMap(type $address, type $width, type $height)

Draw the triple zoomer map

drawMap($targetId, $address, $showMarker = true, $title = '', $info = '')

Draw google map on the target element It will add marker at the address

addMarker($targetId, $address, $title = '', $info = '')

Add marker point to the given address

getFormatedAdd($address)

Get the Formated address from google

Details

at line 34
getAddressData($address)

Fetch google map data refere to http://code.google.com/apis/maps/documentation/geocoding/#Geocoding

Parameters

$address

at line 56
validateAddress($address)

Given a string address, we will try to validate and see if google think it is allright

Parameters

$address

at line 76
drawStaticMap($address, $width, $height)

Return the code that will generate static map if width is '0', then it will draw at 100% width

Parameters

$address
$width
$height

at line 129
static drawZoomableMap(type $address, type $width, type $height)

Draw the triple zoomer map

Parameters

type $address
type $width
type $height

at line 143
drawMap($targetId, $address, $showMarker = true, $title = '', $info = '')

Draw google map on the target element It will add marker at the address

Parameters

$targetId
$address
$showMarker
$title
$info

at line 167
addMarker($targetId, $address, $title = '', $info = '')

Add marker point to the given address

Parameters

$targetId
$address
$title
$info

at line 189
getFormatedAdd($address)

Get the Formated address from google

Parameters

$address