আপনি এখন কাস্টম স্টাইল তৈরি করতে এবং আপনার অ্যাপ ও ওয়েবসাইটে ম্যাপে সেগুলি অ্যাসাইন করার জন্য টোকেন ব্যবহার করতে পারবেন। আরও তথ্যের জন্য,
iOS Maps কাস্টমাইজেশন ওভারভিউ দেখুন।
পলিলাইন কাস্টমাইজেশন: স্ট্যাম্প করা পলিলাইন
আপনি
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
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;
[[["সহজে বোঝা যায়","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-05 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"]]