iOS için Haritalar SDK'sı v3.10.0 Beta
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
iOS için Haritalar SDK'sının 3.10.0 Beta sürümünde, denemeniz için aşağıdaki yeni özellikler sunulmaktadır:
Bulut tabanlı harita stilleriyle harita özelleştirme
Çoklu çizgi özelleştirme: damgalı çoklu çizgiler
Bulut tabanlı harita stilleriyle harita özelleştirme (beta)
Artık özel stiller oluşturabilir ve bunları uygulamalarınızdaki ve web sitelerinizdeki haritalara atamak için jetonları kullanabilirsiniz. Daha fazla bilgi için iOS Haritalar Özelleştirmesine Genel Bakış başlıklı makaleyi inceleyin.
Çoklu çizgi özelleştirme: damgalı çoklu çizgiler
GMSTextureStyle kullanarak çoklu çizginin görünümünü tekrarlayan bir bit eşlem dokusu olarak ayarlayabilirsiniz. Resimler çizgiyi tamamen kaplıyor ancak uç noktalarda ve köşelerde kesiliyor.
Damgalı bir çoklu çizgi oluşturmak için GMSStampStyleGMSTextureStyle oluşturun.
Ardından, bu özelliği şeklin seçenekler nesnesinde stampStyle kullanarak ayarlayın.
Swift
letpath=GMSMutablePath()path.addLatitude(-37.81319,longitude:144.96298)path.addLatitude(-31.95285,longitude:115.85734)letpolyline=GMSPolyline(path:path)letredWithStamp=GMSStrokeStyle.solidColor(.red)letimage=UIImage(named:"imageFromBundleOrAsset")!// Image could be from anywhereredWithStamp.stampStyle=GMSTextureStyle(image:image)letspan=GMSStyleSpan(style:redWithStamp)polyline.spans=[span]polyline.map=mapView
Objective-C
GMSMutablePath*path=[GMSMutablePathpath];[pathaddLatitude:-37.81319longitude:144.96298];[pathaddLatitude:-31.95285longitude:115.85734];GMSPolyline*polyline=[GMSPolylinepolylineWithPath:path];GMSStrokeStyle*redWithStamp=[GMSStrokeStylesolidColor:[UIColorredColor]];UIImage*image=[UIImageimageNamed:@"imageFromBundleOrAsset"];// Image could be from anywhereredWithStamp.stampStyle=[GMSTextureStyletextureStyleWithImage:image];GMSStyleSpan*span=[GMSStyleSpanspanWithStyle:redWithStamp];polyline.spans=@[span];polyline.map=mapView;
[[["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-05-09 UTC."],[],["The Beta SDK is deprecated and unavailable for new use. The Maps SDK for iOS v3.10.0 Beta introduces cloud-based map styling, allowing custom style creation and token assignment. It also introduces stamped polyline customization. To create a stamped polyline, a `GMSStampStyle` of `GMSTextureStyle` must be created and applied to the shape's options using `stampStyle`. Code examples in Swift and Objective-C demonstrate setting a repeating bitmap texture on a polyline.\n"]]