کیت توسعه نرمافزار Google Maps برای iOS نسخه ۳.۱۰.۰ بتا
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
کیت توسعه نرمافزار Google Maps برای iOS نسخه ۳.۱۰.۰ بتا ویژگیهای جدید زیر را برای امتحان کردن شما معرفی میکند:
سفارشیسازی نقشه «سبکپردازی نقشه بااستفاده از فضای ابری»
سفارشیسازی چندخطی: چندخطیهای مُهرشده
سفارشیسازی نقشه «سبکپردازی نقشه بااستفاده از فضای ابری» (نسخه بتا)
اکنون میتوانید سبکهای سفارشی ایجاد کنید و بااستفاده از توکنها، آنها را به نقشهها در برنامهها و وبسایتهایتان اختصاص دهید. برای اطلاعات بیشتر، به
نمای کلی سفارشیسازی Maps برای iOS مراجعه کنید.
سفارشیسازی چندخطی: چندخطیهای مُهرشده
بااستفاده از GMSTextureStyle میتوانید ظاهر چندخطی را روی بافت بیتمپ تکرارشونده تنظیم کنید. تصاویر خط را کاملاً میپوشانند، اما در اطراف نقاط پایانی و رئوس قطع میشوند.
برای ایجاد چندخطی مُهرشده، GMSStampStyle از GMSTextureStyle ایجاد کنید.
سپس این ویژگی را در شیء گزینههای شکل بااستفاده از stampStyle تنظیم کنید، همانطور که
در اینجا نشان داده شده است:
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
آبجکتیو-سی
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;
تاریخ آخرین بهروزرسانی 2026-11-02 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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"]],["تاریخ آخرین بهروزرسانی 2026-11-02 بهوقت ساعت هماهنگ جهانی."],[],["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"]]