संदर्भ के हिसाब से मैप को स्टाइल करना
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.

अब अपने ऐप्लिकेशन में मैप की स्टाइल बदलने के लिए, कॉन्टेक्स्ट का इस्तेमाल किया जा सकता है. लाइट, डार्क, और मोनोक्रोम मैप स्टाइल बनाएं, ताकि मैप आईडी बदले बिना ही आपके ऐप्लिकेशन में स्टाइल अपने-आप बदल जाएं. मैप स्टाइल बनाते समय, आपके पास कई बुनियादी स्टाइल में से किसी एक को चुनने का विकल्प होता है: लाइट, डार्क, मोनोक्रोम लाइट या मोनोक्रोम डार्क. अपनी टारगेट स्टाइल से मिलती-जुलती बेस स्टाइल चुनें. इसके बाद, अपनी ज़रूरतों के हिसाब से उसे पसंद के मुताबिक बनाएं.
मैप की स्टाइल को हल्के और गहरे रंग के हिसाब से पसंद के मुताबिक बनाने के बाद, दोनों को एक मैप आईडी से जोड़ा जा सकता है. अपने ऐप्लिकेशन में मैप आईडी का इस्तेमाल करने पर, मैप के लाइट या डार्क मोड में जाने पर, मैप की स्टाइल अपने-आप बदल जाती है.
मैप आईडी के साथ लाइट और डार्क मैप स्टाइल का इस्तेमाल शुरू करने के लिए, नई स्टाइल बनाएं और अपनी स्टाइल को किसी मैप आईडी से जोड़ें पर जाएं.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-08-31 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-08-31 (UTC) को अपडेट किया गया."],[],[],null,["# Style maps based on context\n\nSelect platform: [Android](/maps/documentation/android-sdk/cloud-customization/contextual-styling \"View this page for the Android platform docs.\") [iOS](/maps/documentation/ios-sdk/cloud-customization/contextual-styling \"View this page for the iOS platform docs.\") [JavaScript](/maps/documentation/javascript/cloud-customization/contextual-styling \"View this page for the JavaScript platform docs.\") [Web Service](/maps/documentation/maps-static/cloud-customization/contextual-styling \"View this page for the Web Service platform docs.\")\n\n\u003cbr /\u003e\n\n| Dark styles are [Experimental](/maps/launch-stages#experimental).\n\nYou can now use context to change a map style in your app. Create light, dark,\nand monochrome map styles to automatically switch styles in\nyour apps without changing the map ID. When you create a map style, you can\nselect from several base styles: light, dark, monochrome light, or monochrome\ndark. Choose the base style closest to your target style and then customize for\nyour needs.\n\nWith a light and dark map style customized, you can then associate both with\none map ID. When you use the map ID in your applications, the map style\nautomatically switches between map styles when the map goes into light or dark\nmode.\n\nTo get started using light and dark map styles with map IDs, go to\n[Create a new style](/maps/documentation/ios-sdk/cloud-customization/map-styles#create-new-style) and\n[Associate your style to a map ID](/maps/documentation/ios-sdk/cloud-customization/map-styles#associate-style-with-map-id)."]]