attachMap

attaches Google Maps to a cell

object attachMap( [object opts] );

Parameters

optsobjectoptional, map options (please, check Google docs for details)

Returns

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