Hi all,

I have an app that has been working fine (in development and on the
web) with the map integrated. Now, I want to add the Google Earth plug-
in as a map type. When I first added the code to set the current map
type to the earth map, it didn't work in Chrome, but it did work in IE
and FF. This was in development only. Then, it stopped working in all
browsers. I would just the the page that says my key isn't right.
After searching the web, I found that this is a generic error message
and not representative of the actual error that is likely occurring.
My map setup code is as follows:

  private void setupMap() {
    map = new MapWidget();
    map.setStyleName("mm-Map");

    map.getEarthInstance(this);

    map.addMapType(MapType.getPhysicalMap());
    map.addMapType(MapType.getEarthMap());

    setInitialMapType();

    map.setScrollWheelZoomEnabled(true);
    map.addControl(new LargeMapControl3D());
    map.addControl(new MenuMapTypeControl());
    map.addMapClickHandler(this);
    map.addMapMouseMoveHandler(this);
    map.addMapMouseOutHandler(this);
    map.addMapTypeChangedHandler(this);
  }

At first, I didn't have the getEarthInstance call, but I added it
trying to get it to work. Right now, when the callback from
getEarthInstance fails, I remove the earth map type from the map to
keep users from seeing the error page.

What should I have to do to be able to have the earth view in the map?

TIA,
Chad

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" 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-web-toolkit?hl=en.

Reply via email to