תכונה שיצאה משימוש: סגנון הענן הקודם הוצא משימוש ויוצא משימוש סופית במרץ 2025. בשלב הזה, סגנונות המפה הקודמים עשויים להפסיק לפעול. Google ממליצה לעדכן את העיצוב החדש של המפות שמבוסס על ענן לפני מרץ 2025. מידע נוסף על ההוצאה משימוש זמין במאמר הוצאה משימוש. במאמר עדכון סגנון מפה לגרסה האחרונה מוסבר איך מעדכנים את הסגנונות הקודמים.
זוהי דוגמה בסיסית לטעינת מפה עם עיצוב מותאם אישית באמצעות מזהה מפה. במקרה כזה, קוד ה-JavaScript של מפות Google מפנה למזהה המפה 8e0a97af9386fef כשהמפה נטענת, ומחיל באופן אוטומטי את סגנון המפה שמשויך למזהה המפה הזה.
[null,null,["עדכון אחרון: 2025-01-14 (שעון UTC)."],[[["This example demonstrates loading a custom styled map using a predefined map ID (`8e0a97af9386fef`)."],["The provided code snippets showcase how to implement this functionality in both TypeScript and JavaScript."],["When the map loads, the Maps JavaScript API automatically applies the style associated with the specified map ID."],["The example focuses on basic map initialization, centering it at specific coordinates (48.85, 2.35) with a zoom level of 12."]]],[]]