Hi! i have trouble dragging a map in a popup. There is a link which onclick opens a new window. After opening the window I write a container div into that new window. On that container i set up the map. Everything works fine so far. The map opens in a new window.
But now, when you try to navigate in the map by dragging, nothing happens. The map seems to recognize the click. But it still keeps in drag mode without navigating. The only way to navigate is by click on the map and then move the mouse over the parent window. You can see my example at http://www.pixell.de/transfer/temp/maps.html And heres the code snippet // OPEN A NEW WINDOW var win = window.open('', 'myWin', 'scrollbars=no,menubar=yes,height=505,width=800 ,resizable=no,toolbar=no,location=no,status=yes'), doc = win.document; doc.open(); // WRITE INTO NEW WINDOW doc.write('<div id="myMap" style="height:400px;width: 700px;"></div>'); doc.close(); // APPLY MAP TO NEW CONTAINER IN WINDOW var mapEl = doc.getElementById('myMap'), map = new GMap2(mapEl, {GMapOptions:{'size:':new GSize(700, 400)}}); map.setUIToDefault(); // SET SAMPLE POINT map.setCenter(new GLatLng(36.405270509999994, 10.64579487), 10); map.checkResize(); Thanks for help, byron -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
