Monday, November 8, 2010

[Google Maps API v2] Re: Yet another "Site needs a different API key problem

Thanks jumanor,

How does one insert this script into the generated code given that GWT
is generating this from:

public final static String MapKEY = "ABQIAAAA4-Uw-
qkr1NiZhA-1JFJhmRQ8o_rih4NTeW_5Ph8tjVdhkL1UeRSDmMs4n1FDwaVtOct5xV-1HrZ7uw";

public void onModuleLoad() {
Maps.loadMapsApi( MapKEY, "2", false, new Runnable() { public void
run() { buildMap(); } } );
}

Thx - ludwig

PS - I search for the dual insertion and found none.

-------------------------------------

On Nov 8, 6:10 am, jumanor <juma...@gmail.com> wrote:
> I had the same problem with GWT Map, I solved the problem by inserting
> this
>
> <script type="text/javascript" src="http://www.google.com/jsapi?
> key=MapKey"></script>
>
> On 6 nov, 20:42, Rossko <ros...@culzean.clara.co.uk> wrote:
>
>
>
>
>
>
>
> > > I am using the GWT map interface and getting the "Site need a ..."
> > > message. The map always load after the dialog is dismissed but would
> > > like to get rid of this message.
>
> > That usually means an attempt to load the API twice, but only once
> > with a key.
>
> > For help with using the API within GWT, go to the GWT Grouphttp://groups.google.com/group/gwt-google-apis/
> > (copied from this groups front page)

--
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