DATA_PREFIX
DATA_PREFIX
Google map
__construct(float $lat = 46.9432773, float $lng = 7.4376970000001, integer $zoom = 14, string $title = '', integer $width = 400, integer $height = 200, string $mapType = 'HYBRID', boolean $disableDefaultUI = false, boolean $enableZoomControl = true, $styles = '') : \Fuman_Response_Data
Constructor
float | $lat | |
float | $lng | |
integer | $zoom | |
string | $title | |
integer | $width | |
integer | $height | |
string | $mapType | |
boolean | $disableDefaultUI | |
boolean | $enableZoomControl | |
$styles |
setAttribute(string $key, string $value, boolean $appendValue = true, string $appendSpacer = ' ') : void
Sets an attribute. If $appendValue is true, the value is going to be appended with the $appendSpacer argument.
string | $key | |
string | $value | |
boolean | $appendValue | |
string | $appendSpacer |
addCssFile(string $path, string $media = 'all', string|null $packageName = null) : \Fuman_Response_Data
Add a CSS file
string | $path | |
string | $media | |
string|null | $packageName | Used for pack.php |
addJsFile(string $path, integer $javaScriptLoadType, string|null $packageName = null) : \Fuman_Response_Data
Add a Js file
string | $path | |
integer | $javaScriptLoadType | |
string|null | $packageName | Used for pack.php |
setTemplatePath(string $templatePath) : \Fuman_Response_Data
Sets script path
string | $templatePath |