আপনি এখন কাস্টম শৈলী তৈরি করতে পারেন, এবং আপনার অ্যাপস এবং ওয়েবসাইটের মানচিত্রে তাদের বরাদ্দ করতে টোকেন ব্যবহার করতে পারেন। আরও তথ্যের জন্য, iOS মানচিত্র কাস্টমাইজেশন ওভারভিউ দেখুন।
পলিলাইন কাস্টমাইজেশন: স্ট্যাম্পড পলিলাইন
আপনি GMSTextureStyle ব্যবহার করে একটি পুনরাবৃত্তি বিটম্যাপ টেক্সচারে একটি পলিলাইনের চেহারা সেট করতে পারেন। চিত্রগুলি সম্পূর্ণভাবে লাইনটিকে আচ্ছাদিত করে, তবে শেষ বিন্দু এবং শীর্ষবিন্দুগুলির চারপাশে কেটে যাবে৷
একটি স্ট্যাম্পড পলিলাইন তৈরি করতে, GMSTextureStyle এর একটি GMSStampStyle তৈরি করুন। তারপরে stampStyle ব্যবহার করে আকৃতির বিকল্প বস্তুতে এই বৈশিষ্ট্যটি সেট করুন, যেমনটি এখানে দেখানো হয়েছে:
সুইফট
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
উদ্দেশ্য-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;
[[["সহজে বোঝা যায়","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 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["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"]]