यह पेज आपको KML में भौगोलिक डेटा को रेंडर करने का तरीका बताता है
फ़ॉर्मैट में GMUKMLParser का इस्तेमाल
GMUGeometryRenderer के साथ संयोजन में. KML मशहूर है
फ़ॉर्मैट का इस्तेमाल करें.
यह स्क्रीनशॉट, मैप पर रेंडर किए गए KML डेटा के कुछ उदाहरण दिखाता है:
कोड का पूरा सैंपल देखने के लिए, सैंपल ऐप्लिकेशन देखें
चालू
GitHub.
KML डेटा रेंडर करना
मैप पर KML डेटा रेंडर करने के लिए GMUKMLParser को
KML संसाधन का पाथ (इस उदाहरण में KML_Sample.kml). इसके बाद,
GMUKMLParser को पास करने वाला GMUGeometryRenderer बनाएं
इंस्टेंस. आखिर में, GMUGeometryRenderer.render() पर कॉल करें. कॉन्टेंट बनाने
उदाहरण के लिए, नीचे दिए गए कोड के उदाहरण में मैप पर KML डेटा को रेंडर किया गया है:
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eThis documentation explains how to render geographic data in KML format using the \u003ccode\u003eGMUKMLParser\u003c/code\u003e and \u003ccode\u003eGMUGeometryRenderer\u003c/code\u003e within the Google Maps SDK for iOS Utility Library.\u003c/p\u003e\n"],["\u003cp\u003eKML is a popular format used for displaying geographic data, including points, lines, and polygons, on maps.\u003c/p\u003e\n"],["\u003cp\u003eTo render KML data, create a \u003ccode\u003eGMUKMLParser\u003c/code\u003e instance with the path to your KML file, then use it to initialize a \u003ccode\u003eGMUGeometryRenderer\u003c/code\u003e, and finally, call \u003ccode\u003erender()\u003c/code\u003e on the renderer to display the data on your map.\u003c/p\u003e\n"],["\u003cp\u003eCode examples in both Swift and Objective-C are provided to demonstrate the process of rendering KML data on a map using the Google Maps SDK for iOS.\u003c/p\u003e\n"]]],[],null,[]]