Ben <ben.falchuk@...> writes:

> 
> I'm trying to learn and work with the gwt-earth project.. started with
> the sort of hello earth program available at:
>
http://code.google.com/p/earth-api-samples/source/browse/#svn%2Ftrunk%2Fdemos%2Fgwt-earth%2Fsrc%2Fcom%2Fgoogle%253Fstate%253Dclosed
> 
> While the GEPlugin concept is fairly tricky - there is a GEWrapper
> class that encapsulates a GEPlugin class, which in turn talks to a
> class with native communication to the GEPlugin (GEPluginNative). In
> that latter class i find native methods like:
> 
>       public static native JavaScriptObject getFeatures(JavaScriptObject
> ge)/*-{
>       return ge.getFeatures();
>       }-*/;
> 
> and i'm trying to add a new one that sets up zoom controllers (etc),
> but can't seem to make it work. I've tried adding this:
> 
>       public static native void setControlsVisible(JavaScriptObject ge)/*-{
>       
> ge.getNavigationControl().setControlType(ge.NAVIGATION_CONTROL_LARGE);
>       ge.getNavigationControl().setVisibility(ge.VISIBILITY_SHOW);
>       }-*/;
> 
> and then call it via GEPlugin class:
> 
>       public void setControlsVisible()
> {GEPluginNative.setControlsVisible(ge);}
> 
> but i end up with a runtime JS error ("this.d.b is null")..
> 
> Is it possible to add controls to the gwt-earth example program? what
> am i missing?
> 
> Thanks for insight.
> 


Hi Ben,

I'm not sure if you are still in need of a solution to your problem but I would
recommend that you use the gwt-earth-3 project instead.
It provides full support for the entire Google Earth API, including the
capability that you are trying to implement.

You can find the project here:
https://code.google.com/p/gwt-earth-3/ 

Regards,
Nick

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to