本文整理匯總了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);
}