Map view problem in windows or layout


 var dhxWins, w1, menu;

    dhxWins = new dhtmlXWindows();
      
    w1 = dhxWins.createWindow("w1", 20, 30, 800, 450);
    w1.setText("Attach dhtmlxMenu to Modal Window");
    w1.setModal(true);

    var dhxLayout_11,

    dhxLayout_11 = w1.attachLayout("1C");

    dhxLayout_11.cells("a").setText("Map");

    dhxLayout_11.cells("a").attachURL("https://google-developers.appspot.com/maps/documentation/javascript/examples/map-geolocation?hl=zh-tw");

I use a popup window to view a map. The code is shown the above.

But I only view success in < IE 9 > and not in other bowrse.
I want to ask any problem of the code or any suggestion.

Thanks for your help !

Have tested it in the FF, Chrome and IE7, IE8: everything in fine. I just shared my location - and it showed me a map.

More the is a methos attachMap() which you can use too…
docs.dhtmlx.com/doku.php?id=dhtm … oglemaps&s[]=attachmap

Darya,

I have tried your code < attachMap() >. It can show map but it is default at U.S.

I want to change the default map. e.g. I am in Hong Kong.

How about this method ?

Thanks for your help !

Ivan

You need to use GoogleMap to define default position, for example setCenter method. Our docs do not contain this info, try to learn googlemap API.