DHTMLX Docs & Samples Explorer

Index
dhtmlxAccordion
API Methods

### attachMap()

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").attachMap(); // returns GoogleMaps object

Attaching to the accordion's cell:

    var GMaps = dhxAcc.cells(id).attachMap(); // 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).attachMap(opts);

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