מפת סיביות של סיביות
מגדיר תמונה של מפת סיביות (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));
סיכום השיטות שעברו בירושה
מהכיתה
JavaScript.lang.Object
בוליאני
|
equals(אובייקט arg0)
|
סופי
כיתה<?>
|
getClass()
|
int
|
hashCode()
|
סופי
ריק
|
notify()
|
סופי
ריק
|
notifyAll()
|
מחרוזת
|
toString()
|
סופי
ריק
|
wait(long arg0, int arg1)
|
סופי
ריק
|
wait(ארוך arg0)
|
סופי
ריק
|
wait()
|
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-13 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-13 (שעון UTC)."],[[["`BitmapDescriptor` defines bitmap images for marker icons and ground overlays in Google Maps."],["Use `BitmapDescriptorFactory` to create instances of `BitmapDescriptor`."],["Marker icons can be customized using `BitmapDescriptor` obtained from `BitmapDescriptorFactory`."],["`BitmapDescriptor` inherits standard methods from `java.lang.Object` like `equals`, `hashCode`, and `toString`."]]],["`BitmapDescriptor` defines a bitmap image for markers or ground overlays. To use it, utilize the `BitmapDescriptorFactory` class. For instance, to set a marker's icon, you can use `BitmapDescriptorFactory.defaultMarker()` to define a color. The example provided demonstrates adding a marker to a map at specific coordinates and customizing it with an azure-colored icon, along with title and snippet. Additionally, this class inherits methods from the `java.lang.Object` class.\n"]]