Google maps is undefined

I have a popup window that I want to attach a map to, but I’m running into some trouble. I’ve seem the documentation here: docs.dhtmlx.com/doku.php?id=dhtm … mple_map&s .

I’ve also tried it with both the custom parameters and the default, but no matter what I get the error message “google.maps is undefined”. I’m using dhtmlxSuite v36 PRO and my code is below.
html

<script type="text/javascript" src="https://maps.googleapis.com/maps/api/staticmap?sensor=false"></script>

javascript

	function googleMap() 
	{
		
		var mapWin = layout1.dhxWins.createWindow("mapWin", 50, 50, 400, 400);
		mapWin.centerOnScreen();
		
		var opts = {
			center: new google.maps.LatLng(40.719837,-73.992348),
			zoom: 11,
			mapTypeId: google.maps.MapTypeId.ROADMAP
		};
		
		var map = mapWin.attachMap(opts);
	}

Not sure what I’m doing wrong.

Hello

We need completed demo to reproduce the issue. Please, provide it - we will try to hepl you.
docs.dhtmlx.com/doku.php?id=othe … leted_demo

Thanks for responding, Darya.

I’ve attached a demo with the relevant code. It does not include DHTMLX files, as I’m using the pro version. In case you need the build details, they are dhtmlxSuite 2013 Rel.1 (DHTMLX 3.6) Professional edition build 130619, and dhtmlxScheduler PRO v.4.0 build 130628. To reproduce the issue, just click on the map button.

Thanks again for your help!
map-demo.zip (5.5 KB)

Locally your demo works, if you add file dejaOffice correctly
More you need to use right maps link as in the sample:
dhtmlx.com/docs/products/dht … gmaps.html

Demo is attached using dhtmlx compiled files (but without them)
map-demo_.rar (4.68 KB)