Example usage for com.google.gwt.maps.client GoogleBarOptions setStyle

List of usage examples for com.google.gwt.maps.client GoogleBarOptions setStyle

Introduction

In this page you can find the example usage for com.google.gwt.maps.client GoogleBarOptions setStyle.

Prototype

public final native GoogleBarOptions setStyle(String style) ;

Source Link

Document

Indicates the style in use by the GGoogleBar.

Usage

From source file:com.google.gwt.maps.sample.hellomaps.client.GoogleBarDemo.java

License:Apache License

public GoogleBarDemo() {
    GoogleBarAdsOptions adsOptions = GoogleBarAdsOptions.newInstance();
    adsOptions.setAdSafe(AdSafeOption.ADSAFE_MEDIUM);
    GoogleBarOptions googleBarOptions = GoogleBarOptions.newInstance();
    googleBarOptions.setAdsOptions(adsOptions);
    googleBarOptions.setShowOnLoad(true);
    googleBarOptions.setStyle("new");
    MapOptions mapOptions = MapOptions.newInstance();
    mapOptions.setGoogleBarOptions(googleBarOptions);
    mapOptions.setSize(Size.newInstance(500, 600));
    // Dublin//from w  w w. j  a  v  a  2s .  c  o  m
    map = new MapWidget(LatLng.newInstance(53.350705, -6.264095), 13, mapOptions);
    // map.setUIToDefault();
    map.setGoogleBarEnabled(true);

    initWidget(map);
}