Package totalcross.map
Class GoogleMaps.Place
- java.lang.Object
-
- totalcross.map.GoogleMaps.MapItem
-
- totalcross.map.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 intbackColorThe item's background color.intcapColorThe item caption's color.java.lang.StringcaptionAn optional caption of the place; shown in boldjava.lang.StringdetailThe detail of the place.intdetColorThe item details' color.intfontPercThe percentage of the font based on the device's original font size.doublelatThe location of the placedoublelonThe location of the placeintpinColorThe item pin's color.
-
Constructor Summary
Constructors Constructor Description Place()
-
-
-
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.
-
-