DHTMLX Docs & Samples Explorer

Index
dhtmlxlayout
API Methods

### attachGoogleMaps()

Required library edition:
Required library file: dhtmlxlayout.js / dhtmlxaccordion.js

attaches Google Maps to the cell, returns GoogleMaps object

Attaching to the layout's cell:

    var GMaps = dhxLayout.cells("b").attachGoogleMaps(); // returns GoogleMaps object

Attaching to the accordion's cell:

    var GMaps = dhxAcc.cells(id).attachGoogleMaps(); // returns GoogleMaps object

Also you may set your own parameters:

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

If initial params are not specified - the default ones will be used.