Required library edition:
Required library file: dhtmlxcontainer.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
Attaching to a window:
var GMaps = dhxWins.window(id).attachGoogleMaps();
Attaching to a tab:
var GMaps = dhxTabbar.cells(tabId).attachGoogleMaps();
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.