Bu sayfada, coğrafi verilerin KML'de nasıl oluşturulacağı gösterilmektedir
biçiminde, GMUKMLParser kullanılarak
GMUGeometryRenderer ile bağlantılı. KML popüler bir
biçim olarak kullanabilirsiniz.
Aşağıdaki ekran görüntüsünde, haritada oluşturulmuş bazı örnek KML verileri gösterilmektedir:
Tam kod örneği için örnek uygulamalara bakın
açık
GitHub'ı tıklayın.
KML verileri oluşturma
KML verilerini bir haritada oluşturmak içinGMUKMLParser
bir KML kaynağına giden yol (bu örnekte KML_Sample.kml). Ardından,
GMUKMLParser değerini geçiren bir GMUGeometryRenderer oluştur
kullanır. Son olarak, GMUGeometryRenderer.render() adlı kişiyi arayın. İlgili içeriği oluşturmak için kullanılan
aşağıdaki kod örneği, KML verilerinin haritada oluşturulmasını gösterir:
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 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,[]]