Hello Vlad,
Hello Vladamir,
I don't know of a way to do this with the stock API and GWT bindings,
but Björn is suggesting that you use a 3rd party Maps JavaScript API
extension. The next public release of the gwt-maps library will
contain a public constructor for building a Marker object from a
JavaScriptObject. So what you would do to make this work is:
0) Load the 3rd party API in your gwt.xml file. If you have a local
copy, you need to put the api in the 'public' directory of your
project.
1) create a JSNI method to instantiate the object and return it
private native JavaScriptObject nativeCreateThirdPartyMarker(LatLng latlng) {
return new $wnd.ThirdPartymarker(latlng);
}
2) If the marker really is a subclass of the Marker class, you can
subclass Marker, passing in this JSO to create it. If not, subclass
Overlay.
Since this is all really GWT specific, feel free to come over to the
gwt-google-apis or Google-Web-Toolkit google group if you want to
discuss it further with other GWT users.
On Fri, Dec 5, 2008 at 4:08 AM, Björn Brala <[EMAIL PROTECTED]> wrote:
> There are mulitple recourses where you can find these, try the sticky posts
> at the start of this group, or http://www.mapki.com/wiki/Main_Page .
>
> Also, google is your friend for searching ;)
>
> 2008/12/5 Vlad <[EMAIL PROTECTED]>
>>
>> Hi All,
>>
>> I am writing an app using GWT with a GMAP integrated into it. As I am
>> writing in Java instead of JS, is there a way to create a GMarker with
>> text labels instead of dots?
>>
>> TIA.
>>
>>
>
>
>
> --
> Bjorn Brala
> ----------------
> GeoStart.nl- Google maps - Swis Webdesign
>
>
> >
>
--
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---