本文整理汇总了Java中com.google.gwt.maps.client.events.MapEventType类的典型用法代码示例。如果您正苦于以下问题:Java MapEventType类的具体用法?Java MapEventType怎么用?Java MapEventType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MapEventType类属于com.google.gwt.maps.client.events包,在下文中一共展示了MapEventType类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setHeight
import com.google.gwt.maps.client.events.MapEventType; //导入依赖的package包/类
@Override
public void setHeight(String height) {
super.setHeight(height);
wrapperPanel.setHeight(height);
if (map != null) {
map.setHeight(height);
MapHandlerRegistration.trigger(map, MapEventType.RESIZE);
} else {
// VConsole.error("Set height attempted before map initialized");
}
}
示例2: setWidth
import com.google.gwt.maps.client.events.MapEventType; //导入依赖的package包/类
@Override
public void setWidth(String width) {
super.setWidth(width);
wrapperPanel.setWidth(width);
if (map != null) {
map.setWidth(width);
MapHandlerRegistration.trigger(map, MapEventType.RESIZE);
} else {
// VConsole.error("Set width attempted before map initialized");
}
}
示例3: resize
import com.google.gwt.maps.client.events.MapEventType; //导入依赖的package包/类
/**
* This method is called to fix the Map loading issue when opening
* multiple instances of maps in different tabs
* Triggers a resize event to be consumed by google api in order to resize view
* after attach.
*
*/
public void resize() {
LatLng center = this.getCenter();
MapHandlerRegistration.trigger(this, MapEventType.RESIZE);
this.setCenter(center);
}