Example usage for com.google.gwt.maps.client.events.position PositionChangeMapHandler PositionChangeMapHandler

List of usage examples for com.google.gwt.maps.client.events.position PositionChangeMapHandler PositionChangeMapHandler

Introduction

In this page you can find the example usage for com.google.gwt.maps.client.events.position PositionChangeMapHandler PositionChangeMapHandler.

Prototype

PositionChangeMapHandler

Source Link

Usage

From source file:com.google.gwt.maps.testing.client.maps.BasicMapWidget.java

License:Apache License

private void drawMapAds() {
    AdUnitOptions options = AdUnitOptions.newInstance();
    options.setFormat(AdFormat.HALF_BANNER);
    options.setPosition(ControlPosition.RIGHT_CENTER);
    options.setMap(mapWidget);//from   w ww .  j  a v a2s. c om
    options.setPublisherId("pub-0032065764310410");
    options.setChannelNumber("4000893900");

    AdUnitWidget adUnit = new AdUnitWidget(options);

    adUnit.addChannelNumberChangeHandler(new ChannelNumberChangeMapHandler() {
        @Override
        public void onEvent(ChannelNumberChangeMapEvent event) {
        }
    });

    adUnit.addFormatChangeHandler(new FormatChangeMapHandler() {
        @Override
        public void onEvent(FormatChangeMapEvent event) {
        }
    });

    adUnit.addMapChangeHandler(new MapChangeMapHandler() {
        @Override
        public void onEvent(MapChangeMapEvent event) {
        }
    });

    adUnit.addPositionChangeHandler(new PositionChangeMapHandler() {
        @Override
        public void onEvent(PositionChangeMapEvent event) {
        }
    });
}

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);//from ww w.  j a v a 2s .c o  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) {
        }
    });

}

From source file:com.google.gwt.maps.testing.client.maps.FullPageMapWidget.java

License:Apache License

private void drawMapAds() {

    AdUnitOptions options = AdUnitOptions.newInstance();
    options.setFormat(AdFormat.LEADERBOARD);
    options.setPosition(ControlPosition.TOP_CENTER);
    options.setMap(mapWidget);// w w  w. ja v a2  s .  c  o 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) {
        }
    });

}

From source file:com.google.gwt.maps.testing.client.maps.PanoramioMapWidget.java

License:Apache License

@SuppressWarnings("unused")
private void drawMapAds() {

    AdUnitOptions options = AdUnitOptions.newInstance();
    options.setFormat(AdFormat.HALF_BANNER);
    options.setPosition(ControlPosition.RIGHT_CENTER);
    options.setMap(mapWidget);//from   w  w  w . j  a v a 2s .c om
    options.setPublisherId("pub-0032065764310410");
    options.setChannelNumber("4000893900");

    AdUnitWidget adUnit = new AdUnitWidget(options);

    adUnit.addChannelNumberChangeHandler(new ChannelNumberChangeMapHandler() {
        @Override
        public void onEvent(ChannelNumberChangeMapEvent event) {
        }
    });

    adUnit.addFormatChangeHandler(new FormatChangeMapHandler() {
        @Override
        public void onEvent(FormatChangeMapEvent event) {
        }
    });

    adUnit.addMapChangeHandler(new MapChangeMapHandler() {
        @Override
        public void onEvent(MapChangeMapEvent event) {
        }
    });

    adUnit.addPositionChangeHandler(new PositionChangeMapHandler() {
        @Override
        public void onEvent(PositionChangeMapEvent event) {
        }
    });

}