Skip to content
This repository was archived by the owner on Apr 24, 2021. It is now read-only.

gwt-google-apis-gwt-map-3-8-0-pre release 1 throws-javascriptexception-map-is-not-defined when attaching to a panel #504

Open
GoogleCodeExporter opened this issue Sep 10, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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-th
rows-javascriptexception-map-is-not-define

Original issue reported on code.google.com by rtr...@gmail.com on 2 Oct 2012 at 9:31

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant