Africa
Africa PHP Methods
addMapColor(array $colorCodeArray) v5
Add colors to a map
PARAMETERS:
$colorCodeArray = array, An array of hexa color codes to apply to the loaded map object
RETURN VALUE:
void addStateAmount(string $stateAbbr, int $amount) v5
Add stats amount to US map
PARAMETERS:
$stateAbbr = string, State name as 2 letter code
$amount = int, stats amount for the selected state
RETURN VALUE:
void getHoverHTML() v5
Gets map hover HTML
PARAMETERS:
NONE
RETURN VALUE:
string = map hover HTML getLegendHTML() v5
Gets map legend as HTML
PARAMETERS:
NONE
RETURN VALUE:
string = map legend as HTML getMap() v5
Gets map SVG content
PARAMETERS:
NONE
RETURN VALUE:
string = map content as SVG getRecordsLabel() v5
Gets map record label
PARAMETERS:
NONE
RETURN VALUE:
string = map record label getStateColors(int $amount) v5
Get states colors based on the stats amount
PARAMETERS:
$amount = int, stats amount per state
RETURN VALUE:
string = states colors based on the stats amount getStateHoverColors(int $amount) v5
Get states hover colors based on the stats amount
PARAMETERS:
$amount = int, stats amount per state
RETURN VALUE:
string = states hover colors based on the stats amount getStatesTable() v5
Gets map states table as HTML
PARAMETERS:
NONE
RETURN VALUE:
string = map states table as HTML getTableTR() v5
Get map record as HTML
PARAMETERS:
NONE
RETURN VALUE:
string = map record as HTML getURL() v5
Get map URL
PARAMETERS:
NONE
RETURN VALUE:
string = Map URL hideLegend() v5
hide map legend
PARAMETERS:
NONE
RETURN VALUE:
void setHoverHTML(string $hoverHTML) v5
Set map hover HTML template
PARAMETERS:
$hoverHTML = string, map hover HTML template
RETURN VALUE:
void setLegendHTML(string $legendHTML) v5
Set map legend HTML template
PARAMETERS:
$legendHTML = string, Map legend HTML template
RETURN VALUE:
void setRecordsLabel(string $recordsLabel) v5
Set map records label
PARAMETERS:
$recordsLabel = string, Record label
RETURN VALUE:
void setTableTR(string $tableTR) v5
Set map table row HTML template
PARAMETERS:
$tableTR = string, map table record HTML template
RETURN VALUE:
void setURL(string $url) v5
Set map URL
PARAMETERS:
$url = string, Map URL
RETURN VALUE:
void showLegend() v5
Show map legend
PARAMETERS:
NONE
RETURN VALUE:
voidAfrica PHP Variables
🔎︎ %l4610%