[ERROR] Uncaught exception escaped
java.lang.RuntimeException: The Maps API has not been loaded.
Is a <script> tag missing from your host HTML or module file? Is the
Maps key missing or invalid?
at com.google.gwt.maps.client.Maps.assertLoaded(Maps.java:29)
at com.google.gwt.maps.client.geom.LatLng$.newInstance(Native Method)
at
com.xingwang.netmanager.client.view.system.MapBaseView.getCenterPanel
(MapBaseView.java:92)
at com.xingwang.netmanager.client.view.system.MapBaseView.<init>
(MapBaseView.java:76)
at com.xingwang.netmanager.client.widgets.NMSMenu.createMapPanel
(NMSMenu.java:380)
at com.xingwang.netmanager.client.widgets.NMSMenu.refreshDialog
(NMSMenu.java:412)
at com.xingwang.netmanager.client.index$1.componentSelected
(index.java:28)
at com.extjs.gxt.ui.client.event.SelectionListener.handleEvent
(SelectionListener.java:20)
at com.extjs.gxt.ui.client.event.SelectionListener.handleEvent
(SelectionListener.java:1)
at com.extjs.gxt.ui.client.event.BaseObservable.fireEvent
(BaseObservable.java:74)
at com.extjs.gxt.ui.client.widget.Component.fireEvent(Component.java:
427)
at com.extjs.gxt.ui.client.widget.menu.Item.onClick(Item.java:142)
at com.extjs.gxt.ui.client.widget.menu.Menu.onClick(Menu.java:570)
at com.extjs.gxt.ui.client.widget.menu.Menu.onComponentEvent
(Menu.java:266)
at com.extjs.gxt.ui.client.widget.Component.onBrowserEvent
(Component.java:666)
at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1308)
at com.google.gwt.user.client.DOM.dispatchEventAndCatch(DOM.java:
1287)
at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1255)
google .help me.I use gxt- gwt
but the module already include <script> key it's project run
error.need me give map key?
what's mean???????why it crazy?????
<?xml version="1.0" encoding="UTF-8"?>
<module>
<inherits name="com.google.gwt.user.User"/>
<inherits name='com.google.gwt.user.theme.standard.Standard'/>
<!-- Load the Google Maps GWT bindings from the gwt-google-apis
project -->
<!-- Added by projectCreator if you use the -addModule argument -->
<inherits name="com.google.gwt.maps.GoogleMaps" />
<inherits name='com.extjs.gxt.desktop.WebDesktop' />
<!--
If you want to deploy this application outside of localhost,
you must obtain a Google Maps API key at:
http://www.google.com/apis/maps/signup.html
Replace the src attribute below with a URL that contains your key.
-->
<!-- script src="http://maps.google.com/maps?
gwt=1&file=api&v=2&key=???" /-->
<!-- You can usually run under localhost without a key -->
<!-- script src="http://maps.google.com/maps?
gwt=1&file=api&v=2" / -->
<script src="http://maps.google.com/maps?gwt=1&file=api&v=2 /
>
<entry-point class="com.xingwang.netmanager.client.index" />
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---