Class GoogleMaps.Place

  • Enclosing class:
    GoogleMaps

    public static class GoogleMaps.Place
    extends GoogleMaps.MapItem
    A map item that represents a place in the map. It shows with a pin, and above it, a balloon with a text.
     GoogleMaps.Place p1 = new GoogleMaps.Place();
     p1.lat = -3.778284;
     p1.lon = -38.482617;
     p1.backColor = Color.WHITE;
     p1.capColor = Color.BLACK;
     p1.detColor = 0x444444;
     p1.pinColor = Color.RED;
     p1.caption = "TotalCross MGP";
     p1.fontPerc = 150;
     p1.detail = "Av Norte 2920\nLuciano Cavalcante\nCearĂ¡ - Brazil";
     
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int backColor
      The item's background color.
      int capColor
      The item caption's color.
      java.lang.String caption
      An optional caption of the place; shown in bold
      java.lang.String detail
      The detail of the place.
      int detColor
      The item details' color.
      int fontPerc
      The percentage of the font based on the device's original font size.
      double lat
      The location of the place
      double lon
      The location of the place
      int pinColor
      The item pin's color.
    • Constructor Summary

      Constructors 
      Constructor Description
      Place()  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • lat

        public double lat
        The location of the place
      • lon

        public double lon
        The location of the place
      • caption

        public java.lang.String caption
        An optional caption of the place; shown in bold
      • detail

        public java.lang.String detail
        The detail of the place. Use \n to split lines. Cannot be null.
      • backColor

        public int backColor
        The item's background color. Alpha defaults to 255 if not specified.
      • capColor

        public int capColor
        The item caption's color. Alpha defaults to 255 if not specified.
      • detColor

        public int detColor
        The item details' color. Alpha defaults to 255 if not specified.
      • pinColor

        public int pinColor
        The item pin's color. Alpha defaults to 255 if not specified.
      • fontPerc

        public int fontPerc
        The percentage of the font based on the device's original font size. Defaults to 100.
    • Constructor Detail

      • Place

        public Place()