daux.io/docs/cms/16_Front-End_Helpers/05_PHP/01_Map/02_Usage.md

323 B

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