0

I Have a div section named 'MapPanel' in which I defined the Google Earth Plug-in.

I have a form next to it and I wish that on a certain event the "focus" of the web page will be on the Google earth so that for example that I can move the map with the arrows.

I have tried $("#MapPanel").focus() without success.

4

1 回答 1

0

GEWindow对象有一个用于此目的的focus() 方法。你可以这样称呼它,其中ge代表GEPlugin 对象

ge.getWindow().focus();
于 2013-06-25T12:58:34.650 回答