Fixing homepage changes

This commit is contained in:
Justin Walsh
2013-06-21 10:49:05 -05:00
parent 6aafb9e6da
commit d582eb9919
107 changed files with 633 additions and 1050 deletions

View 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.

View 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();