Example usage for com.google.gwt.maps.client MapOptions setBackgroundColor

List of usage examples for com.google.gwt.maps.client MapOptions setBackgroundColor

Introduction

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

Prototype

public final native void setBackgroundColor(String backgroundColor) ;

Source Link

Document

set Color used for the background of the Map div.

Usage

From source file:pl.itrack.client.local.services.maps.TricitySchemaService.java

License:Apache License

@Override
public MapOptions getMapOptions() {
    MapTypeControlOptions controlOpts = MapTypeControlOptions.newInstance();
    controlOpts.setMapTypeIds(new String[] { MAP_TYPE_ID });

    MapOptions opts = MapOptions.newInstance();
    opts.setZoom(ZOOM_INITIAL);//from  w  ww .  j ava 2 s.com
    opts.setMapTypeControlOptions(controlOpts);
    opts.setPanControl(false);
    opts.setStreetViewControl(false);
    opts.setBackgroundColor(BACKGROUND_COLOR);
    opts.setCenter(LatLng.newInstance(INITIAL_LATITUDE, INITIAL_LONGITUDE));
    return opts;
}