Fixing homepage changes
This commit is contained in:
38
docs/cms/16_Front-End_Helpers/05_PHP/01_Map/01_Methods.md
Normal file
38
docs/cms/16_Front-End_Helpers/05_PHP/01_Map/01_Methods.md
Normal file
@ -0,0 +1,38 @@
|
||||
object **latlng** ( int *$lat*, int *$lng* )
|
||||
|
||||
Sets the latitude and longitude of the Map object.
|
||||
|
||||
$map->latlng(40.11, -100.20);
|
||||
|
||||
object **height** ( string *$height* )
|
||||
|
||||
Sets the max-height of the Map object in 'px' or '%'.
|
||||
|
||||
$map1->height('400px');
|
||||
$map2->height('100%');
|
||||
|
||||
object **width** ( string *$width* )
|
||||
|
||||
Sets the max-width of the Map object in 'px' or '%'.
|
||||
|
||||
$map1->width('400px');
|
||||
$map2->width('100%');
|
||||
|
||||
object **infoWindow** ( string *$content* )
|
||||
|
||||
Sets the content of the infoWindow displayed in the embeddable Map object.
|
||||
|
||||
$map->infoWindow('Hello World!');
|
||||
|
||||
object **infoWindowMaxWidth** ( string *$maxwidth* )
|
||||
|
||||
Sets the max-width of the Map object in 'px' or '%'.
|
||||
|
||||
$map1->width('400px');
|
||||
$map2->width('100%');
|
||||
|
||||
string **render** ( *void* )
|
||||
|
||||
$map->render();
|
||||
|
||||
Renders Map object into an embeddable string that displays a Google Map on the webpage.
|
10
docs/cms/16_Front-End_Helpers/05_PHP/01_Map/02_Usage.md
Normal file
10
docs/cms/16_Front-End_Helpers/05_PHP/01_Map/02_Usage.md
Normal file
@ -0,0 +1,10 @@
|
||||
|
||||
The Map object can be initialized with a latitude and longitude:
|
||||
|
||||
$map1 = new Map(40.11, -100.20);
|
||||
$map1->render();
|
||||
|
||||
Alternatively, you can add properties to the Map with various setter Methods.
|
||||
|
||||
$map2 = new Map();
|
||||
$map2->latlng(40.11, -100.20)->width('640px')->height('480px')->infoWindow('Hello World!')->render();
|
Reference in New Issue
Block a user