ניהול סגנונות חופפים
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
במפה הבסיסית, חלק מהמאפיינים של המפה חופפים זה לזה ברמות מסוימות של שינוי מרחק התצוגה. כשמתרחשת חפיפה, יכול להיות שלא תראו סגנון מותאם אישית כי סגנון אחר של תכונת מפה מסתיר את הסגנון שהגדרתם באופן מלא או חלקי. אם התכונה של המפה החופפת שקופה חלקית, הצבע שלה משתנה.
אם אתם מעצבים תכונה במפה ולא רואים את השינויים שביצעתם, יכול להיות שיש תכונה אחרת במפה שחופפת לה. הנה כמה דוגמאות:
חפיפה מלאה בין רכיבים במפה: יכול להיות שרכיב המפה POI>Nature Reserve
יחפוף לרכיב המפה Natural>Vegetation. לדוגמה, אם אתם מעצבים פארקים לאומיים, הסגנון שמורת טבע אף פעם לא יוצג בפארק ילוסטון כי הוא מכוסה על ידי תכונת המפה צמחייה.

דוגמה נוספת היא חניונים מסוימים שבהם יש חפיפה בין תכונות המפה של החניון לבין הבניין.
תכונה שקופה במפה חופפת לתכונה אחרת: אם תכונה שקופה במפה חופפת לתכונה אחרת במפה, היא מופיעה כשכבת-על ברמות מסוימות של שינוי מרחק התצוגה. לדוגמה, בשתי התמונות האלה בתי חולים מוצגים בצבע אדום. במקרה הראשון, סגנון התכונה Building במפה מוצג מעל התכונה Hospital במפה, אבל הוא שקוף למחצה, ולכן הוא משנה את הצבע.
בתמונה השנייה, התכונה חשיפה של מפת הבניין מושבתת, ולכן מוצג הסגנון שנבחר – קו אדום מלא.

חיפוש תכונות במפה שחופפות
כדי לגלות אילו תכונות חופפות במפה משפיעות על התוצאות, פועלים לפי השלבים הבאים:
אם יש לכם מושג מהי תכונת המפה החופפת, כדאי להגדיר את האפשרות 'הצגת התכונה' כ'לא' לתכונת המפה שאתם חושדים שהיא חופפת, ולבדוק אם הסגנון מופיע כמו שציפיתם.
כדאי לנסות להשבית את האפשרויות שהכי סביר שהן גורמות לבעיה, כמו בניין או טבע.
אם עדיין לא מצאתם את הסגנון, מתחילים בהשבתת האפשרות Visibility Off בכל התכונות האחרות במפה ברמה העליונה, אחת אחרי השנייה, ומסתכלים על המפה כדי לראות מתי הסגנון שלכם מופיע כמו שציפיתם.
אחרי שמצמצמים את האפשרויות לתכונה ברמה העליונה, בודקים את התכונות של המפה שמתחתיה כדי לזהות את התכונה או התכונות החופפות.
ניהול תכונות חופפות במפה
אחרי שמגלים אילו תכונות במפה חופפות, יש כמה אפשרויות:
השבתת הנראות של רכיב המפה החופף: השינוי הזה מסיר את רכיב המפה מהמפה.
עיצוב גם של התכונה החופפת: עיצוב של תכונת מפה חופפת מאפשר לשנות תכונה אחרת מזו שרציתם, כך שהעיצוב שלה יהיה תואם יותר לסגנון שרוצים לשנות או להוסיף.
החלת סגנון על התכונה החופפת במקום על תכונת המפה המקורית: אם זה מתאים לצרכים שלכם, אפשר להחיל סגנון על התכונה החופפת במקום על תכונת המפה המקורית.
השארת החפיפה: כמו בדוגמה של בית החולים שצוינה למעלה, לפעמים עדיף להשאיר את אפקט השכבת-העל במקום להשבית את הנראות של כל הבניינים.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-08-31 (שעון UTC).
[null,null,["עדכון אחרון: 2025-08-31 (שעון UTC)."],[],[],null,["# Manage styles that overlap\n\nSelect platform: [Android](/maps/documentation/android-sdk/cloud-customization/overlap \"View this page for the Android platform docs.\") [iOS](/maps/documentation/ios-sdk/cloud-customization/overlap \"View this page for the iOS platform docs.\") [JavaScript](/maps/documentation/javascript/cloud-customization/overlap \"View this page for the JavaScript platform docs.\") [Web Service](/maps/documentation/maps-static/cloud-customization/overlap \"View this page for the Web Service platform docs.\")\n\n\u003cbr /\u003e\n\nOn the base map, some map features overlap each other at certain\nzoom levels. When overlapping happens, you might not see a custom style appear\nbecause another map feature style completely or partially obscures the style\nyou set. If the overlapping map feature is partially transparent, it changes\nthe color.\n\nIf you are styling a map feature, and aren't seeing your changes appear,\nit may be because there is an overlapping map feature. Here are some examples:\n\n- **Map features completely overlap** : The map feature **POI\\\u003eNature Reserve**\n may overlap with a **Natural\\\u003eVegetation** map feature. For example, if you\n are styling national parks, Yellowstone never shows the **Nature Reserve**\n style because the **Vegetation** map feature covers it.\n\n Another example is some parking garages have map features of parking\n and building overlapping.\n- **A transparent map feature overlaps another** : If a transparent map feature\n overlaps another map features, it appears as an overlay\n at some zoom levels. For example, these two images show hospitals\n styled as red. In the first, the **Building** map feature style overlays the\n **Hospital** map feature, but is semi-transparent, so it alters the color.\n In the second image, the building map feature **Visibility** is **Off**,\n so it shows the chosen style--a solid red.\n\n\nFind map features that overlap\n------------------------------\n\nTo figure out which overlapping map features affect your results,\ntake the following steps:\n\n1. If you have an idea what the overlapping map feature is, turn\n the **Visibility Off** for your suspected overlapping map feature, and\n see if your style appears as expected.\n\n2. Try turning off the most likely suspects, like **Building** or **Natural**.\n\n3. If you still haven't found it, start by turning **Visibility Off** on\n the other top-level map features in turn, watching the map for when\n your styling appears as expected.\n\n4. When you've narrowed it down to a top-level feature, test the map\n features under it to pinpoint the overlapping feature or features.\n\nManage overlapping map features\n-------------------------------\n\nOnce you figure out which map features are overlapping, you have a few choices:\n\n- **Turn visibility off on the overlapping map feature**: This change\n removes the map feature from the map.\n\n- **Style the overlapping feature as well**: By styling the overlapping\n map feature, you change a feature other than the one you intended so that\n its styling is more compatible with the style you want to change or add.\n\n- **Style the overlapping feature instead**: If it works for your needs,\n style the overlapping feature instead of the original map feature.\n\n- **Leave it overlapping**: As in the hospital example above, sometimes it\n works to leave the overlay effect, rather than turn off visibility for\n all buildings."]]