Google Maps GWT API - Icons

17 views
Skip to first unread message

Marcelo Nunes

unread,
May 5, 2008, 12:21:45 PM5/5/08
to Google Web Toolkit
Hello everyone!

I've been trying to add an Icon to a marker using the Google Maps GWT
API but it just doesn't seem to work. Can anyone give me a hand? This
is the piece of code I'm using:

GIcon gIcon = new GIcon();
gIcon.setImage("http://gmaps-samples.googlecode.com/svn/trunk/markers/
blue/blank.png");
GMarkerOptions markerOptions = new GMarkerOptions();
markerOptions.setIcon(gIcon);
GMarker mapMarker = new GMarker(geoPoint,markerOptions);
map.addOverlay(mapMarker);


Thanks a lot!

Marcelo

Marcelo Nunes

unread,
May 6, 2008, 9:26:02 AM5/6/08
to Google Web Toolkit
Hey anyone!

This is really urgent and I keep trying and trying and no success...
Anyone that have worked with this API before could give me a hand?

Regards!

Marcelo

Marcelo Nunes

unread,
May 6, 2008, 10:15:37 AM5/6/08
to Google Web Toolkit
Hey! Just found out a thread about this issue, here's the link if
anyone happens to have the same problem:
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/59dacfca844834d2/7287e92a1d500aa1#7287e92a1d500aa1

regards!

Marcelo

On May 5, 6:21 pm, Marcelo Nunes <marcelo...@gmail.com> wrote:

Eric Ayers

unread,
May 9, 2008, 9:24:01 AM5/9/08
to Google Web Toolkit
Hello Marcelo,

I know this is confusing, but there are multiple APIs for using maps
with GWT. The Google Maps API that was is supported by Google is at
http://code.google.com/p/gwt-google-apis and uses a different class
naming convention than the one you are using. I'm guessing you are
using mapitz or the googlemaps API.

I am working on the gwt-google-apis project and we have a milestone
release we would like for folks to test at:

http://code.google.com/p/gwt-google-apis/downloads/list?can=1&q=290

Never mind the fact that they are marked 'deprecated' - that is just
to keep people from stumbling across them accidentally.

Regards,
-Eric.

On May 6, 10:15 am, Marcelo Nunes <marcelo...@gmail.com> wrote:
> Hey! Just found out a thread about this issue, here's the link if
> anyone happens to have the same problem:http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...

markmccall

unread,
May 9, 2008, 10:26:53 AM5/9/08
to Google Web Toolkit
Eric, if this is too off topic feel free to hit me over the head...

We are investigating using the gwt-google-apis for maps, but we are
using GWT 1.4.60. Which release should we use for 1.4.60?

Thanks,
Mark

On May 9, 9:24 am, Eric Ayers <zun...@google.com> wrote:
> Hello Marcelo,
>
> I know this is confusing, but there are multiple APIs for using maps
> with GWT. The Google Maps API that was is supported by Google is athttp://code.google.com/p/gwt-google-apisand uses a different class

Eric Ayers

unread,
May 10, 2008, 7:01:07 AM5/10/08
to Google Web Toolkit
Hi Mark,

The pre-compiled r41 distribution works under GWT 1.4:

http://code.google.com/p/gwt-google-apis/downloads/list?can=1&q=r41

You could also try grabbing a copy from subversion up through mid
January. I believe we didn't introduce any GWT 1.5 dependencies
until later.

Note that there are no plans to maintain a 1.4 compatible release. To
use the r290 version, you'll need to grab a copy of the latest GWT 1.5
milestone:

http://code.google.com/p/google-web-toolkit/downloads/list?can=1&q=2415

Happy hacking!
-Eric.

On May 9, 10:26 am, markmccall <markwmcc...@gmail.com> wrote:
> Eric, if this is too off topic feel free to hit me over the head...
>
> We are investigating using the gwt-google-apis for maps, but we are
> using GWT 1.4.60.  Which release should we use for 1.4.60?
>
> Thanks,
> Mark
>
> On May 9, 9:24 am, Eric Ayers <zun...@google.com> wrote:
>
>
>
> > Hello Marcelo,
>
> > I know this is confusing, but there are multiple APIs for using maps
> > with GWT.  The Google Maps API that was is supported by Google is athttp://code.google.com/p/gwt-google-apisanduses a different class
> > > > Marcelo- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages