Check documentation for the latest version of dhtmlxSuite attachMap DHTMLX Docs

attachMap

attaches Google Maps to a cell

object attachMap( [object opts] );
optsobjectoptional, map options (please, check Google docs for details)
objectgoogle.maps.Map object

Example

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

Details

Please, check Google docs for details.

Back to top