Map.style
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
سبک نقشه ActiveDictionary را برمیگرداند که میتوان آن را برای بهروزرسانی سبکهای نقشه تغییر داد.
علاوه بر سبکهای استاندارد UI API فهرست شده در مستندات ()ui.Panel.style، Map از گزینه سبک سفارشی زیر پشتیبانی میکند:
- مکان نما، که می تواند "تقاطع" یا "دست" (پیش فرض) باشد
استفاده | برمی گرداند | Map.style() | ui.data.ActiveDictionary |
بدون استدلال
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eThe \u003ccode\u003eMap.style()\u003c/code\u003e function grants access to the Map's style dictionary, enabling style modifications.\u003c/p\u003e\n"],["\u003cp\u003eCustom style options for the Map include setting the cursor to 'crosshair' or the default 'hand'.\u003c/p\u003e\n"],["\u003cp\u003eCalling \u003ccode\u003eMap.style()\u003c/code\u003e with no arguments returns a ui.data.ActiveDictionary object containing the current styles.\u003c/p\u003e\n"]]],["The `Map.style()` method returns an `ActiveDictionary` that controls the Map's visual styles. This `ActiveDictionary` can be directly modified to change these styles. In addition to standard UI API styles, the Map also allows customization of the cursor, which can be set to either 'crosshair' or 'hand', with 'hand' being the default. The method takes no arguments.\n"],null,["# Map.style\n\n\u003cbr /\u003e\n\nReturns the Map's style ActiveDictionary, which can be modified to update the Map's styles.\n\n\u003cbr /\u003e\n\nIn addition to the standard UI API styles listed in the ui.Panel.style() documentation, the Map supports the following custom style option:\n\n- cursor, which can be 'crosshair' or 'hand' (default)\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|---------------|--------------------------|\n| `Map.style()` | ui.data.ActiveDictionary |\n\n**No arguments.**"]]