इस पेज में आपको GeoJSON में भौगोलिक डेटा को रेंडर करने का तरीका बताया गया है
GMUGeoJSONParser का इस्तेमाल करके,
GMUGeometryRenderer के साथ संयोजन में. GeoJSON लोकप्रिय है
फ़ॉर्मैट का इस्तेमाल करें.
कोड का पूरा सैंपल देखने के लिए, सैंपल ऐप्लिकेशन देखें
चालू
GitHub.
GeoJSON डेटा को रेंडर किया जा रहा है
मैप पर GeoJSON डेटा को रेंडर करने के लिए, GMUGeoJSONParser बनाएं
GeoJSON संसाधन का पाथ (इस में GeoJSON_sample.kml
उदाहरण के लिए). फिर, एक GMUGeometryRenderer बनाएं और
GMUKMLParser इंस्टेंस. आख़िर में, कॉल करें
GMUGeometryRenderer.render(). कोड का यह उदाहरण दिखाता है
मैप पर GeoJSON डेटा को रेंडर करना:
[[["समझने में आसान है","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 page demonstrates how to render geographic data in GeoJSON format on Google Maps using the \u003ccode\u003eGMUGeoJSONParser\u003c/code\u003e and \u003ccode\u003eGMUGeometryRenderer\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eGeoJSON is a commonly used format for displaying geographic data like points, lines, and polygons.\u003c/p\u003e\n"],["\u003cp\u003eYou'll need to set up the Maps SDK for iOS Utility Library before using \u003ccode\u003eGMUGeoJSONParser\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe provided code examples show how to render GeoJSON data on a map in both Swift and Objective-C.\u003c/p\u003e\n"]]],["The document explains how to render GeoJSON data on a map using the `GMUGeoJSONParser` and `GMUGeometryRenderer` from the Maps SDK for iOS Utility Library. First, a `GMUGeoJSONParser` is created with the GeoJSON resource path. Then, a `GMUGeometryRenderer` is initialized with the map view and the parser's features. Finally, the `GMUGeometryRenderer.render()` method is called to display the GeoJSON data, such as points, lines, and polygons, on the map.\n"],null,[]]