Example usage for com.google.gwt.maps.client MapTypeId fromValue

List of usage examples for com.google.gwt.maps.client MapTypeId fromValue

Introduction

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

Prototype

public static MapTypeId fromValue(String type) 

Source Link

Usage

From source file:org.rebioma.client.MapView.java

License:Apache License

private MapTypeId getMapType(String type) {
    MapTypeId mapType = MapTypeId.fromValue(type);
    if (mapType == null || !mapTypesMap.containsValue(mapType)) {
        mapType = DEFAULT_MAP_TYPE;//from  w ww. ja  va 2 s.c  om
    }
    return mapType;
}