Is it possible to use Maps Data Java API instead the Js API to create a map with markers

8 views
Skip to first unread message

AfcDev

unread,
Oct 27, 2009, 4:57:51 AM10/27/09
to Google Maps Data API
hi everyone,

I hope my question makes sense. I would like to have a google map in
my java based web application. Naturally I would prefer to create the
map the markers and everything with java instead of making use of the
GMap2, GLatLng... (Js Api) and parse constantly between Java and Js.

So I tried the GMaps Java API and created a map. What I do not
understand however is how am I supposed to show this map.

With Js API that would be map = new GMap2(document.getElementById
("map"));

Is it possible to say something like map = new GMap2
("URLofMyGmapCreatedWithJavaAPI") ?

I hope it is possible to understand my question and I am looking
forward to your answers.

Greetings

Bobby

unread,
Dec 15, 2009, 6:05:34 AM12/15/09
to Google Maps Data API
The GData API is primarily for reading/writing data, so it allows you
to create and manage saved maps for authenticated users but it doesn't
have any rendering capabilities. I recommend you look at GWT and the
gwt-maps library, which binds to the JS Maps API - it has the same
capabilities but allows you to code the client-side using Java instead
of JS.

Bobby
Reply all
Reply to author
Forward
0 new messages