Ed Syrett
Ed Syrett

Reputation: 45

GWT 2.8 with Google Maps v3

How is our app written with GWT 2.8 supposed to make use of the latest Google Maps Javascript API?

We have been using the branflake2267 api but that seems to use a "channel" and "client" instead of an API Key. Is this the correct library to be using?

By the way, I think Google should have done something about this - after all it's their GWT and their Maps API, so why isn't there a library to interface the two?

Thanks,

Ed.

Upvotes: 0

Views: 285

Answers (1)

Robert Newton
Robert Newton

Reputation: 1611

This branflake2267 api module that your mention is quite old and targets GWT 2.5, so it may need some minor mods to work with GWT 2.8.

It may also need some updating to match recent versions of the Maps API.

You can always create your own java bindings to a javascript library using GWT's JsInterop, or update/extend existing bindings such as these ones. It's using the old/deprecated JSNI to make the bindings instead of the newer JsInterop, so you could continue with JSNI or start introducing JsInterop.

By the way, GWT is now a community managed project and has been for many years. GWT now stands for "GWT Web Toolkit" (the recursion is deliberate), not "Google Web Toolkit". JsInterop is provided so that you can interface to any javascript library in java -- there should not be an obligation on Google to provide such an interface to their Maps.

Upvotes: 2

Related Questions