Example usage for com.google.gwt.maps.client.controls ControlPosition BOTTOM_CENTER

List of usage examples for com.google.gwt.maps.client.controls ControlPosition BOTTOM_CENTER

Introduction

In this page you can find the example usage for com.google.gwt.maps.client.controls ControlPosition BOTTOM_CENTER.

Prototype

ControlPosition BOTTOM_CENTER

To view the source code for com.google.gwt.maps.client.controls ControlPosition BOTTOM_CENTER.

Click Source Link

Document

Elements are positioned in the center of the bottom row.

Usage

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) {
        }
    });

}