Tuesday, February 1, 2011

[Google Maps API v2] Re: Google earth instance in a Eclipse RCP view

in fact, it works well. the earth is displaying when I do the
following in my initialize function and add the SWT.MOZILLA style in
eclipse (it uses XULRunner). So Earth plugin works well. But still, in
the top right list of map types, I cannot see the EARTH button. any
idea?

thank's

function initialize() {
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(41.4419, -1.1419), 5);


var mapControl = new GMapTypeControl();
map.addControl(mapControl);

// Enable the Earth map type
map.addMapType(G_SATELLITE_3D_MAP);
map.setUIToDefault();
map.setMapType(G_SATELLITE_3D_MAP);

// Callback to Java from JavaScript
theJavaFunction(map.getCenter().lat(), map.getCenter().lng());

}

}

On 31 jan, 20:25, Rossko <ros...@culzean.clara.co.uk> wrote:
> > I a m trying to integrate a page containing google maps in a eclipse
> > view part (embedded browser).
>
> Here are the supported browsers for the Earth pluginhttp://code.google.com/apis/earth/documentation/index.html#installing...

--
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 google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate