List of usage examples for com.google.gwt.maps.client.controls ControlPosition BOTTOM_CENTER
ControlPosition BOTTOM_CENTER
To view the source code for com.google.gwt.maps.client.controls ControlPosition BOTTOM_CENTER.
Click Source Link
From source file:com.google.gwt.maps.testing.client.maps.ControlsMapWidget.java
License:Apache License
private void drawMapAds() { AdUnitOptions options = AdUnitOptions.newInstance(); options.setFormat(AdFormat.LEADERBOARD); options.setPosition(ControlPosition.BOTTOM_CENTER); options.setMap(mapWidget);// w w w . j a v a2 s . co m options.setPublisherId("pub-0032065764310410"); options.setChannelNumber("4000893900"); AdUnitWidget adUnit = new AdUnitWidget(options); adUnit.addChannelNumberChangeHandler(new ChannelNumberChangeMapHandler() { public void onEvent(ChannelNumberChangeMapEvent event) { } }); adUnit.addFormatChangeHandler(new FormatChangeMapHandler() { public void onEvent(FormatChangeMapEvent event) { } }); adUnit.addMapChangeHandler(new MapChangeMapHandler() { public void onEvent(MapChangeMapEvent event) { } }); adUnit.addPositionChangeHandler(new PositionChangeMapHandler() { public void onEvent(PositionChangeMapEvent event) { } }); }