Enum MapTypeId

java.lang.Object
java.lang.Enum<MapTypeId>
provided.owlMaps.map.MapTypeId
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MapTypeId>, java.lang.constant.Constable

public enum MapTypeId
extends java.lang.Enum<MapTypeId>
The allowable types of maps to display. Corresponds Google Maps Javascript API google.maps.MapTypeId
Author:
swong
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant Description
    HYBRID
    This map type displays a transparent layer of major streets on satellite images.
    ROADMAP
    This map type displays a normal street map.
    SATELLITE
    This map type displays satellite images.
    TERRAIN
    This map type displays maps with physical features such as terrain and vegetation.
  • Field Summary

    Fields
    Modifier and Type Field Description
    private java.lang.String name
    The Google Maps map type name
    private static java.util.Map<java.lang.String,​MapTypeId> STR2ID
    Mapping of Google Maps API MapTypeID string values to the corresponding enum value
  • Constructor Summary

    Constructors
    Modifier Constructor Description
    private MapTypeId​(java.lang.String name)
    Construct an enum instance
  • Method Summary

    Modifier and Type Method Description
    static MapTypeId fromString​(java.lang.String mapTypeIdStr)
    FOR INTERNAL USE ONLY!! DO NOT USE THIS METHOD IN DEVELOPER CODE! Converts the string representation of a map type ID into its associated enum value.
    java.lang.String getName()
    Accessor for the associated Google Maps map type name
    static MapTypeId valueOf​(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    static MapTypeId[] values()
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • HYBRID

      public static final MapTypeId HYBRID
      This map type displays a transparent layer of major streets on satellite images.
    • ROADMAP

      public static final MapTypeId ROADMAP
      This map type displays a normal street map.
    • SATELLITE

      public static final MapTypeId SATELLITE
      This map type displays satellite images.
    • TERRAIN

      public static final MapTypeId TERRAIN
      This map type displays maps with physical features such as terrain and vegetation.
  • Field Details

    • name

      private final java.lang.String name
      The Google Maps map type name
    • STR2ID

      private static final java.util.Map<java.lang.String,​MapTypeId> STR2ID
      Mapping of Google Maps API MapTypeID string values to the corresponding enum value
  • Constructor Details

    • MapTypeId

      private MapTypeId​(java.lang.String name)
      Construct an enum instance
      Parameters:
      name - The associated Google Maps event name
  • Method Details

    • values

      public static MapTypeId[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static MapTypeId valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      java.lang.NullPointerException - if the argument is null
    • getName

      public java.lang.String getName()
      Accessor for the associated Google Maps map type name
      Returns:
      The associated Google Maps map type name
    • fromString

      public static MapTypeId fromString​(java.lang.String mapTypeIdStr)
      FOR INTERNAL USE ONLY!! DO NOT USE THIS METHOD IN DEVELOPER CODE! Converts the string representation of a map type ID into its associated enum value.
      Parameters:
      mapTypeIdStr - The string representation of the map type ID.
      Returns:
      A MapTypeID enum value