DHTMLX Docs & Samples Explorer

Index
dhtmlxlayout
Content Attaching

# Google Maps

DhtmlxForm gives you the possibility to look over Google Maps in your application.

You can add Google Map with both default and custom parameters. If initial params are not specified - the default ones will be used.

To set an GoogleMaps object with default parameters - use the following codeline:

    var GMaps = dhxLayout.cells("b").attachMap();

And here is the code that uses custom parameters:

    var customparams = {
        center: new google.maps.LatLng(40.719837,-73.992348),
        zoom: 11,
        mapTypeId: google.maps.MapTypeId.ROADMAP
        };
    var GMaps = dhxAcc.cells(id).attachMap(customparams);

An example that uses the mentioned above method you can see here.