Check documentation for the latest version of dhtmlxSuite Attaching Google Maps DHTMLX Docs

Attaching Google Maps

There's a possibility to attach Google Maps to a cell.

Firstly, include the corresponding .js file on your page:

<script type="text/javascript"   src="http://maps.google.com/maps/api/js?sensor=false"></script>


And then initialize a cell with a map inside on the page:

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


Related sample:  Integration with Google Maps

Back to top