Wednesday, February 26, 2014

Re: GWT and SVG, the 125th... :-)

Hi Alain,
I understand that you fetch all the JS code with the method getJsObj() and pass it to the method setupMap. So I believe that setupMap will embed the JS code into the div element.
But what exactly is going on there?
(I do not know the Maps API):
private native void setUpMap(Element div, JavaScriptObject mapOptions)/*-{
var map = new $, mapOptions);
this.@com.emitrom.pilot.maps.client.GMapWidget::map = @com.emitrom.pilot.maps.client.GMap::new(Lcom/google/gwt/core/client/JavaScriptObject;)(map);
 It looks like an object is created and put somewhere...
What would you do if the div were my FlowPanel p (see above) and the map were the draw object (see above)?
Where is the equivalence of p.add(draw)?

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment