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 $wnd.google.maps.Map(div, 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)?
 
Thanks
Magnus
 
 

--
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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment