Hi, I am using GWT for google map application. I use Google's
*gwt-maps.jar*for mapping api. I can create a map as private MapWidget
mapId; if
(Maps.isBrowserCompatible()) { mapId = new MapWidget();
mapId.setPixelSize(600, 500); RootPanel.get("gmap").add(mapId);
mapId.setCurrentMapType(MapType.getHybridMap()); mapId.addControl(new
LargeMapControl()); mapId.addControl(new MapTypeControl());
mapId.addControl(new ScaleControl());
mapId.setCenter(LatLng.newInstance(-33.867139, 151.20711), 9); } Now I have
some legacy javascript code that needed to work on this map object. I want
to use something like this: $wnd.mapId.addOverlay(ovrlay1); But I cannot get
this $wnd.mapId variable. Do you know any way to get GMap2 object from
existing map on some element? It will work if I get the GMap2 instance from
my "gmap" div. For the time being I am using JSNI to generate all the map
functionalities. Simmilar to: $wnd.mapId = new
$wnd.GMap2($wnd.document.getElementById("gmap"));μακσυδ http://www.commlinkinfotech.com/~maksud --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
