מחלקה סופית ציבורית
BitmapDescriptor
מרחיבה את האובייקט
מגדיר תמונה של מפת סיביות (bitmap). עבור סמן, ניתן להשתמש במחלקה הזו כדי להגדיר את התמונה של סמל הסמן.
ליצירת שכבת-על של קרקע, ניתן להשתמש בה כדי להגדיר את התמונה כך שתוצב על פני השטח של כדור הארץ. כדי
לקבל BitmapDescriptor
צריך להשתמש ב-BitmapDescriptorFactory
ברמת היצרן.
דוגמה להגדרת סמל של סמן BitmapDescriptor
.
GoogleMap map = ... // get a map.
// Add a marker at San Francisco with an azure colored marker.
Marker marker = map.add(new MarkerOptions()
.position(new LatLng(37.7750, 122.4183))
.title("San Francisco")
.snippet("Population: 776733"))
.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE));