الإصدار 3.10.0 من حزمة تطوير البرامج بالاستناد إلى بيانات "خرائط Google" لأجهزة iOS
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
يقدّم الإصدار التجريبي 3.10.0 من حزمة تطوير البرامج (SDK) لتطبيق "خرائط Google" لأجهزة iOS الميزات الجديدة التالية التي يمكنك تجربتها:
تخصيص الخرائط/تصميم الخرائط المستند إلى السحابة الإلكترونية
تخصيص الخطوط المتعددة: الخطوط المتعددة المُختمة
تخصيص الخرائط/تصميم الخرائط المستند إلى السحابة الإلكترونية (إصدار تجريبي)
يمكنك الآن إنشاء أنماط مخصّصة واستخدام الرموز المميّزة لتحديدها للخرائط في
تطبيقاتك ومواقعك الإلكترونية. لمزيد من المعلومات، يُرجى الاطّلاع على
نظرة عامة على تخصيص "خرائط Google" على أجهزة 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
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;
تاريخ التعديل الأخير: 2025-06-13 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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-06-13 (حسب التوقيت العالمي المتفَّق عليه)"],[[["The Beta version of the Maps SDK for iOS is being deprecated and will be decommissioned; features accessed through it will be supported in a future SDK version."],["This Beta release (v3.10.0) introduces Cloud-Based Map Styling for customizing maps in apps and websites."],["This release also includes Polyline Customization, allowing developers to apply repeating bitmap textures to polylines using `GMSTextureStyle`."]]],["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"]]