سؤال

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.

هل كانت مفيدة؟

المحلول

The GEWindow object has a focus() method for this purpose. You would call it like so, where ge represents the GEPlugin object.

ge.getWindow().focus();
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top