gwt-google-apis (maps): Subclass Marker

7 views
Skip to first unread message

Alberto Núñez

unread,
Sep 11, 2008, 3:36:15 AM9/11/08
to Google Web Toolkit
Hi all,
I want to subclass Marker in order to use a JavaScript library
(LabeledMarker) that provides a subclass of GMarker. Is there any way
I can do that without rewriting the whole Marker and MarkerImpl
classes?

Regards,
Alberto.

Eric Ayers

unread,
Sep 11, 2008, 6:15:04 AM9/11/08
to Google-We...@googlegroups.com
You're not the first person to want to do this.  I made this change in the trunk a while ago at the request of another user.  You can check out the source from subversion and build a new jar.  See the gwt-google-apis Maps FAQ (http://code.google.com/p/gwt-google-apis/) for some details if you are unsure how to do this.

Keep in mind that we are working toward a release candidate right now and are pushing through some API changes in some types to use JavaScript overlays which change the way you construct new instances for many types (use static factory method newInstance() instead of the new operator.)
--
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/
Reply all
Reply to author
Forward
0 new messages