如您所知,GWT 的官方 Google Maps API v3 已在此处发布:https://groups.google.com/forum/#!topic/gwt-google-apis/6SO5kCDqb-k
我需要使用 GoogleMap 类的以下方法:
map.setControls(JsArray<MVCArray<Node>> controls)
如何构造论证?
JsArray<MVCArray<Node>> controls
例如,如何在 map 的 TOP_LEFT 上放置 GWT 标签?
最佳答案
TextBox textbox = new TextBox();
textbox.setText("textbox123");
MVCArray<Node> array = MVCArray.create();
array.push(textbox.getElement());
map.getControls().set((int)ControlPosition.RIGHT_TOP.getValue(), array);
关于gwt - Google map v3 for GWT : How to use map. setControls(JsArray<MVCArray<Node>> 控件)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12563921/