Aralık ayında San Francisco'da düzenlenecek bir sonraki Google Haritalar Platformu Geliştirici Topluluğu Günü'nde bize katılın. Katılmak için hemen başvurun.
Google, içerikleri tercih ettiğiniz dile çevirmek için yapay zeka teknolojisini kullanır. Yapay zeka çevirilerinde hata olabilir.
Bu sayfada, GeoJSON'da coğrafi verilerin nasıl oluşturulacağı gösterilmektedir
biçimi, GMUGeoJSONParser kullanılarak,
GMUGeometryRenderer ile bağlantılı. GeoJSON popüler bir
biçim olarak kullanabilirsiniz.
Tam kod örneği için örnek uygulamalara bakın
açık
GitHub'ı tıklayın.
GeoJSON verilerini oluşturma
Haritada GeoJSON verilerini görüntülemek için şunlarla bir GMUGeoJSONParser oluşturun:
bir GeoJSON kaynağına giden yolu (GeoJSON_sample.kml
örneğine bakın). Ardından, bir GMUGeometryRenderer oluşturun ve
GMUKMLParser örneği. Son olarak,
GMUGeometryRenderer.render() Aşağıdaki kod örneği,
GeoJSON verilerini haritada oluşturma:
[[["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: 2026-09-19 UTC."],[],["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"]]