Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 504 by
rtr...@gmail.com: gwt-google-apis-gwt-map-3-8-0-pre
release 1 throws-javascriptexception-map-is-not-defined when attaching to a
panel
http://code.google.com/p/gwt-google-apis/issues/detail?id=504
Found in Release:gwt-google-apis-gwt-map-3-8-0-pre release 1
Platform information (OS, Browser, GWT version). Does the issue exist on
other platforms? This issue is platform independant to the best of my
knowlede and limited testing.
Give a Detailed description of the problem. If possible, please include
some code that reproduces the problem and a verbatim copy of any error
messages you can find.
LatLng myLatLng = LatLng.create(39.571993, -104.998184);
MapOptions myOptions = MapOptions.create();
myOptions.setZoom(16.5);
myOptions.setCenter(myLatLng);
myOptions.setMapTypeId(MapTypeId.SATELLITE);
//com.google.gwt.dom.client.Element mapDiv =
Document.get().getElementById("map_canvas");
RootPanel root = RootPanel.get("MAP1_NetworkMapContainer");
//HTMLPanel mapPanel = HTMLPanel.wrap(mapDiv);
//mapPanel.setHeight("100%");
//map = GoogleMap.create(mapPanel.getElement(), options);
try {
root.add(mapPanel);
} catch (Exception e) {
Log.error("Received Exception ", e);
String error = e.toString();
}
Workaround if you have one: none found. any attempt to attach the div
generates the exception.
Links to the relevant Google Group posts:
http://stackoverflow.com/questions/12489880/gwt-google-apis-gwt-map-3-8-0-pre-throws-javascriptexception-map-is-not-define